Skip to content

refactor: update dashboard styles, add Lumo theme variants #8962

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

Merged
merged 28 commits into from
May 19, 2025

Conversation

rolfsmeds
Copy link
Contributor

Description

  • Elevated and Flat style variants
  • Shaded background variant for board itself
  • Wrapping title support (and a style prop for disabling wrapping)

Fixes #8961
Fixes #8706

Type of change

  • Bugfix
  • Feature

Checklist

  • I have read the contribution guide: https://vaadin.com/docs/latest/contributing/pr
  • I have added a description following the guideline.
  • The issue is created in the corresponding repository and I have referenced it.
  • I have added tests to ensure my change is effective and works as intended.
  • New and existing tests are passing locally with my change.
  • I have performed self-review and corrected misspellings.
  • I have not completed some of the steps above and my pull request can be closed immediately.

Additional for Feature type of change

  • Enhancement / new feature was discussed in a corresponding GitHub issue and Acceptance Criteria were created.

@ugur-vaadin
Copy link
Contributor

We should probably add some visual tests for the themes.

@ugur-vaadin
Copy link
Contributor

We should probably add some visual tests for the themes.

Added some tests. Can you check the baseline images @rolfsmeds ?

@rolfsmeds
Copy link
Contributor Author

We should probably add some visual tests for the themes.

Added some tests. Can you check the baseline images @rolfsmeds ?

As I've now modified stuff again, I'm guessing the baselines need updating too @ugur-vaadin ?

@ugur-vaadin
Copy link
Contributor

ugur-vaadin commented May 7, 2025

As I've now modified stuff again, I'm guessing the baselines need updating too @ugur-vaadin ?

Updated the images. Header content alignment seems to have changed. Can you check to see if anything looks out of place?

@rolfsmeds
Copy link
Contributor Author

As I've now modified stuff again, I'm guessing the baselines need updating too @ugur-vaadin ?

Updated the images. Header content alignment seems to have changed. Can you check to see if anything looks out of place?

Header content alignment was changed to support wrapping widget titles, but I see now that apparently the titles are rendering significantly lower in the test images than on macOS, which probably means they do so on Windows too. Doesn't look very good. I'll make a couple of small tweaks to hopefully make it look better.

@ugur-vaadin
Copy link
Contributor

Header content alignment was changed to support wrapping widget titles, but I see now that apparently the titles are rendering significantly lower in the test images than on macOS, which probably means they do so on Windows too. Doesn't look very good. I'll make a couple of small tweaks to hopefully make it look better.

Updated the images.

@rolfsmeds
Copy link
Contributor Author

Header content alignment was changed to support wrapping widget titles, but I see now that apparently the titles are rendering significantly lower in the test images than on macOS, which probably means they do so on Windows too. Doesn't look very good. I'll make a couple of small tweaks to hopefully make it look better.

Updated the images.

LGTM

@web-padawan web-padawan changed the title Dashboard style update refactor: update dashboard styles, add Lumo theme variants May 19, 2025
@web-padawan web-padawan removed the request for review from yuriy-fix May 19, 2025 11:51
Copy link

@web-padawan web-padawan merged commit f3a4465 into main May 19, 2025
10 checks passed
@web-padawan web-padawan deleted the feat/dashboard-widget-styles branch May 19, 2025 11:52
vaadin-bot pushed a commit that referenced this pull request May 19, 2025
web-padawan pushed a commit that referenced this pull request May 19, 2025
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.

Elevated and Flat Dashboard Widget styles Dashboard: style variant for wrapping widget titles
5 participants