KEMBAR78
chore: update Aura dev page, add theme editor by jouni · Pull Request #10151 · vaadin/web-components · GitHub
Skip to content

Conversation

@jouni
Copy link
Member

@jouni jouni commented Sep 11, 2025

Depends on #10146

Add a theme editor and more dummy content to the Aura theme dev page.

The theme editor controls have been generated by an LLM.

@web-padawan web-padawan changed the title chore: aura dev page chore: update Aura dev page, add theme editor Sep 12, 2025
position="top-start"
width="320px"
style="--aura-base-size: 12; --aura-base-font-size: 13"
theme
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This affects font-size and line-height which I believe should be handled by the component.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I’m not sure I understand what you mean.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is how it looks like with theme set:

Screenshot 2025-09-12 at 17 58 10

And without theme:

Screenshot 2025-09-12 at 17 58 54

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not a blocker for this PR, let's look into it separately.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, right, you meant that. Yeah, that’s intentional, that some custom property values are re-evaluated on elements that have the theme attribute. This is so that a custom theme can define for example [theme~="small"] { --aura-base-size: 12; --aura-base-font-size: 12; }.

We can think of alternative selectors. The universal * selector is one option, but I thought that would probably cause performance problems.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That button with theme="" is a mistake, though.

@sonarqubecloud
Copy link

@web-padawan web-padawan merged commit c199fe1 into main Sep 12, 2025
9 checks passed
@web-padawan web-padawan deleted the chore/aura-dev-page branch September 12, 2025 15:00
@vaadin-bot
Copy link
Collaborator

This ticket/PR has been released with Vaadin 25.0.0-alpha12.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants