-
Notifications
You must be signed in to change notification settings - Fork 155
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
Header style scoping breaks in Firefox when rendered inside vaadin-split-layout and HTML imports are nested #1227
Comments
I was unable to reproduce the issue with Firefox 58.0.2 and given code snippet above, could you point out what versions do you have installed and check for any errors in the console? |
No errors in the console. Using 5.0.0-beta3. Firefox 58.0.2 as well. You can also reproduce it using https://github.com/vaadin/vaadin-lumo-styles/blob/master/test/sink.html |
Now I can confirm the issue with the |
UPD: still can be reproduced, and looks like it can be workarounded by setting the Same happens to the |
This happens to me as well, just using vaadin-grid and generated columns with dom-repeat. The class="style-scope vaadin-grid" is not applied to the header row. The workaround I did was this: _columnsChanged (columns) {
Array
.from(this.$.table.shadowRoot.querySelectorAll('#header>tr'))
.forEach(row => row.classList.add('style-scope', 'vaadin-grid'))
} The columns property is what I pass to my dom-repeat to generate column templates |
Importing
vaadin-grid.html
andvaadin-split-layout.html
with a combinedimports.html
file causes grid style scoping to break in Firefox when placed insidevaadin-split-layout
.Works:
Doesn’t work:
Looking with the inspector, at least the
th
element is missingclass="style-scope vaadin-grid"
.I’m suspecting this is happens with other wrapping elements as well, not just
vaadin-split-layout
.The text was updated successfully, but these errors were encountered: