KEMBAR78
feat: add masterSize and detailSize properties to master-detail-layout by web-padawan · Pull Request #8788 · vaadin/web-components · GitHub
Skip to content

Conversation

@web-padawan
Copy link
Member

@web-padawan web-padawan commented Mar 12, 2025

Description

Part of vaadin/platform#7173

Implenented APIs for setting the size of the two areas:

Type of change

  • Feature

@web-padawan web-padawan force-pushed the feat/md-layout-size-props branch from 66fa369 to 1201b51 Compare March 12, 2025 11:20
* overlaid on top of, the master area, depending on configuration and viewport size.
*/
declare class MasterDetailLayout extends ThemableMixin(ElementMixin(HTMLElement)) {}
declare class MasterDetailLayout extends ThemableMixin(ElementMixin(HTMLElement)) {
Copy link
Member

Choose a reason for hiding this comment

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

Is there a reason to implement ThemableMixin in new components, as shadow DOM styling is deprecated?

Copy link
Member

Choose a reason for hiding this comment

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

I think I ended up implementing it in Card for some reason, but I didn't have a good reason (probably only because I copy-pasted from another component and couldn't make it work without it).

Copy link
Member Author

Choose a reason for hiding this comment

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

Good question. I was thinking that we would still need it for Lumo styles in V24.

Copy link
Member

Choose a reason for hiding this comment

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

Ah, right, it’s for our own needs. That was the reason in Card as well, that there isn't any other official way to load the theme stylesheets for our components.

@web-padawan web-padawan force-pushed the feat/md-layout-size-props branch from a5b4bf1 to d46881a Compare March 12, 2025 14:58
@web-padawan web-padawan changed the title feat: add master-detail-layout size and min-size properties feat: add masterSize and detailSize properties to master-detail-layout Mar 13, 2025
@web-padawan web-padawan force-pushed the feat/md-layout-size-props branch from 56a3d4c to c796c24 Compare March 13, 2025 09:08
@sonarqubecloud
Copy link

@web-padawan web-padawan merged commit 75bab86 into main Mar 13, 2025
9 checks passed
@web-padawan web-padawan deleted the feat/md-layout-size-props branch March 13, 2025 10:02
@vaadin-bot
Copy link
Collaborator

This ticket/PR has been released with Vaadin 24.8.0.alpha2 and is also targeting the upcoming stable 24.8.0 version.

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.

5 participants