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

Utility classes that encapsulate common styling needs for native html elements #8237

Open
rolfsmeds opened this issue Nov 28, 2024 · 0 comments
Labels
enhancement New feature or request epic Big feature that has subtasks theme vaadin-lumo-styles

Comments

@rolfsmeds
Copy link
Contributor

Describe your motivation

There are many recurring styling needs for native html elements that, while fairly simple, can be challenging to implement using css or the atomic utility classes.

Describe the solution you'd like

Packaging these styles as more comprehensive utility classes would be a lightweight solution.

Examples:

  • Style a <label> / NativeLabel to look like a field label
  • Style a link to look like a Vaadin Button (incl. hover, focus and disabled styles, and primary)
  • Style a link to look like a menu item (e.g. in ContextMenu, with focus and hover styles)
  • Style a native <input type="text"> (or a div, or whatever) to look like a Vaadin TextField
  • Badges could be refactored to this instead of the theme based styling

Describe alternatives you've considered

I suppose the alternative would be the way badge styles are currently implemented, as theme attribute based styles loaded through some other Lumo module... but I feel we should move away from this approach in general.

Additional context

No response

@yuriy-fix yuriy-fix added the epic Big feature that has subtasks label Dec 5, 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 epic Big feature that has subtasks theme vaadin-lumo-styles
Projects
None yet
Development

No branches or pull requests

2 participants