Skip to content

DateRangePicker does not listen to general styling #47

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

Open
werwolfberlin opened this issue Jul 31, 2024 · 0 comments
Open

DateRangePicker does not listen to general styling #47

werwolfberlin opened this issue Jul 31, 2024 · 0 comments

Comments

@werwolfberlin
Copy link

in my project all components are shown bordered using the following css (simplified)

::part(input-field) { background-color: var(--lumo-tint); border: 1px solid var(--lumo-contrast-30pct); border-radius: var(--lumo-border-radius-l); font-size: var(--lumo-font-size-xs); box-sizing: border-box; }

image

The ideal behavior would be, that the DateRangeField would use that and display as the other components.

But since it is a multi part component there are multiple input-field parts, so i tried to reach them with CSS selectors. Sadly there are nested shadow doms which are not easily penetratable. In current Vaadin components most of the tags inside the shadow dom were pulled out for better accessibility and theming.
It would be acceptable when there would be a way to layout this component internally so that it has only one shadow dom.

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

No branches or pull requests

1 participant