Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to hide opinionated default utility classes #6

Open
2 tasks
MiguelFranken opened this issue Apr 17, 2024 · 0 comments
Open
2 tasks

Add option to hide opinionated default utility classes #6

MiguelFranken opened this issue Apr 17, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@MiguelFranken
Copy link
Collaborator

MiguelFranken commented Apr 17, 2024

Utility classes like text-left are generated and shown in the generated code block. This is totally fine, but we might want to add the option to hide a set of opinionated default utility classes.

The text-left utility class might have no effect as the CSS default is to show text on the left side. So it might be hidden.

But we would need to add this utility class if in a parent a utility class like text-right would be applied having an impact on the text position of the child. In that case text-left would be necessary.

  • How can we define default utility classes that might not have an impact without using the parent context?
  • How to analyze in a efficient manner the parent context to check if a conflicting utility class might be applied?
@MiguelFranken MiguelFranken self-assigned this Apr 17, 2024
@MiguelFranken MiguelFranken added the enhancement New feature or request label Apr 17, 2024
@MiguelFranken MiguelFranken moved this to Backlog in Onyx Board Apr 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Backlog
Development

No branches or pull requests

1 participant