Skip to content

docs: update examples to use end slot instead of inline styles#5323

Merged
web-padawan merged 3 commits intomainfrom
docs/button-grid-slots
Mar 5, 2026
Merged

docs: update examples to use end slot instead of inline styles#5323
web-padawan merged 3 commits intomainfrom
docs/button-grid-slots

Conversation

@web-padawan
Copy link
Member

Updated to use slot="end" in HorizontalLayout to remove inline styles setting margin to auto.

Button delete = new Button("Delete");
delete.setEnabled(false);
delete.addThemeVariants(ButtonVariant.ERROR);
delete.getStyle().set("margin-inline-start", "auto");
Copy link
Member Author

Choose a reason for hiding this comment

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

This is no longer needed as we use footer.addToEnd(delete) below.

@web-padawan web-padawan force-pushed the docs/button-grid-slots branch from cdb62e8 to 909d845 Compare March 5, 2026 11:56
@web-padawan web-padawan changed the title docs: update Button example to use slot instead of inline styles docs: update examples to use end slot instead of inline styles Mar 5, 2026
}}
>
<h4 style={{ margin: 0 }} id="notifications-heading">
<h4 id="notifications-heading">
Copy link
Member Author

Choose a reason for hiding this comment

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

It's not needed to reset margin as both Lumo and Aura do it for headings.

@web-padawan web-padawan force-pushed the docs/button-grid-slots branch from 1787878 to a391feb Compare March 5, 2026 12:08
@web-padawan web-padawan removed the request for review from vursen March 5, 2026 20:02
@web-padawan web-padawan merged commit 74c6e94 into main Mar 5, 2026
5 checks passed
@web-padawan web-padawan deleted the docs/button-grid-slots branch March 5, 2026 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants