Skip to content

Conversation

web-padawan
Copy link
Member

Description

Updated dashboard tests to use src version instead of Lumo, which fixes errors noticeable with --theme=base:

  1. Added min-height to the content part as otherwise it has 0 height
  2. Added min-width to dashboard button as otherwise it has 0 width
  3. Limited height in some tests to smaller value to ensure scrollbar

Type of change

  • Test

@web-padawan web-padawan changed the title test: update dashboard unit tests to use unstyled version refactor: update dashboard styles, fix unit tests to use src version Jun 26, 2025
Copy link

@web-padawan web-padawan removed the request for review from sissbruecker June 26, 2025 12:37
@web-padawan web-padawan merged commit d70bb8e into main Jun 26, 2025
10 checks passed
@web-padawan web-padawan deleted the test/dashboard-src-styles branch June 26, 2025 12:38
@@ -25,7 +24,7 @@ const [defaultSpacing, defaultMinimumColumnWidth] = (() => {
document.body.appendChild(div);
div.style.width = '1rem';
const minColWidth = div.offsetWidth * 25;
div.style.width = 'var(--lumo-space-m)';
div.style.width = '1rem'; // var(--lumo-space-m)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
div.style.width = '1rem'; // var(--lumo-space-m)
div.style.width = '1rem';

Or was leaving a reference intentional?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, I decided to leave it as a reference. We probably should change it later when adding base styles to use some gap custom CSS property.

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

Successfully merging this pull request may close these issues.

3 participants