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

Functional styles #1110

Open
vladmoroz opened this issue Dec 16, 2024 · 0 comments
Open

Functional styles #1110

vladmoroz opened this issue Dec 16, 2024 · 0 comments

Comments

@vladmoroz
Copy link
Contributor

vladmoroz commented Dec 16, 2024

We've briefly discussed the issues with functional that are needed almost always but might pose problems in edge cases

Examples:

  • outline: 0 to clear the default focus outline on non-interactive containers
  • overflow: scroll on ScrollArea.Viewport
  • max-height: 100% on popups in a positioner
  • Other sizing and positioning styles

Options:

  • Remove as much functional styles as possible and have the developer add them manually
  • Render functional styles in @layer base so they can be overridden by any developer CSS:
<style>@layer base { ... }</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant