-
Notifications
You must be signed in to change notification settings - Fork 87
feat: port grid Lumo styles to CSS files #9520
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
Conversation
d83978b
to
40e8fb6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For some reason, when item names start with a capital "V" letter, the tests fail with a strange visual difference:
This only happens when running the tests with CSS files and is consistently reproducible both locally and on Sauce Labs. After hours of debugging, I'm still unable to see the cause. Changing Very
to A very
or simply to very
works around the problem. It also doesn't appear to be related to any animation or transition
cursor: pointer; | ||
cursor: default; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cursor: pointer; | |
cursor: default; | |
cursor: default; |
See:
:host(:not([leaf])) { | |
cursor: default; | |
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
-webkit-tap-highlight-color: transparent; | ||
} | ||
|
||
:host([dir='rtl']) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could be moved to /* RTL specific styles */
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorter icons seem broken
Confirmed: a font containing the sorter icons was missing from the CSS files. The visual tests didn't catch this, likely because the difference was too subtle to trigger a failure. I've pushed a fix.
Different size for the selection column
This is due to the asynchronous loading of Lumo CSS files – recalculateColumnWidths
is done before the styles are fully loaded. I'll check if this also happens when adding Lumo through a <link>
tag in the <head>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll check if this also happens when adding Lumo through a tag in the
No, the issue no longer occurs if I replace
import '@vaadin/vaadin-lumo-styles/lumo.css'
with
<link rel="stylesheet" href="/packages/vaadin-lumo-styles/lumo.css" />
added to the <head>
.
40e8fb6
to
460fc1d
Compare
Co-authored-by: Serhii Kulykov <iamkulykov@gmail.com>
|
Description
Part of #9082
Type of change