Skip to content
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

fix: position loader part correctly in RTL mode #7566

Merged
merged 2 commits into from
Jul 18, 2024

Conversation

web-padawan
Copy link
Member

Description

  • Fixed an incorrect appearance of the loader part in RTL mode. The issue was apparently present since the initial RTL support added in Add RTL specific styles vaadin-combo-box#855
  • Also changed to use shorthand CSS properties to fix warning reported by upgrading to Stylelint 16.

Note: no visual tests as I haven't found a way to reliably stop the infinite animation to avoid flakiness 😕

Before

Screenshot 2024-07-18 at 13 40 18

After

Screenshot 2024-07-18 at 13 39 53

Type of change

  • Bugfix

@vursen
Copy link
Contributor

vursen commented Jul 18, 2024

Note: no visual tests as I haven't found a way to reliably stop the infinite animation to avoid flakiness 😕

Would adding the following to not-animated-styles.js work to stop the animation?

vaadin-combo-box-overlay::part(loader) {
  animation: none;
  opacity: 1;
}

@web-padawan
Copy link
Member Author

Using animation: none; just hides the loader part completely. I tried animation-iteration-count: 1,1 but with this rule there are still failures after running visual tests for the loading state, so it appears to be not sufficient 🤷‍♂️

@web-padawan
Copy link
Member Author

Ok, using animation: none with opacity: 1 does work. Updated the PR and added visual tests.

Copy link

sonarcloud bot commented Jul 18, 2024

@web-padawan web-padawan merged commit fe7add4 into main Jul 18, 2024
9 checks passed
@web-padawan web-padawan deleted the fix/combo-box-loader-rtl branch July 18, 2024 13:12
web-padawan added a commit that referenced this pull request Jul 18, 2024
Co-authored-by: Serhii Kulykov <iamkulykov@gmail.com>
web-padawan added a commit that referenced this pull request Jul 18, 2024
Co-authored-by: Serhii Kulykov <iamkulykov@gmail.com>
@vaadin-bot
Copy link
Collaborator

This ticket/PR has been released with Vaadin 24.5.0.alpha6 and is also targeting the upcoming stable 24.5.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.

3 participants