Skip to content

bwst Theme: Optimierung readme.md und theme#10012

Open
transkamp wants to merge 1 commit intopublic-ui:developfrom
transkamp:develop
Open

bwst Theme: Optimierung readme.md und theme#10012
transkamp wants to merge 1 commit intopublic-ui:developfrom
transkamp:develop

Conversation

@transkamp
Copy link
Copy Markdown

  • Bearbeitung der A11Y findings aus Review

Hinweis für link.scss Zeile 12. Die Anweisung wurde absichtlich nicht entfernt.
&:focus { // Outline für Fokus wurde entfernt, ein focus-visible ist aber trotzdem für Tastatursteuerung berücksichtigt outline: none;

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request updates the bwst theme by refining design tokens, correcting CSS color syntax from rgb to rgba, and adjusting focus and border styles. Review feedback highlights a critical issue in spin.scss where the removal of dimensions prevents the loader from rendering correctly. Additionally, it is recommended to replace hardcoded shadow colors with central design tokens for better maintainability and to increase the outline-offset in link.scss as the current value is too small to be visible.

Comment on lines +14 to 16
border-width: 6px;
animation-duration: 1.5s;
animation-name: rotation;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

high

Durch das Entfernen von width und height sowie das Fehlen der content-Eigenschaft wird das Pseudo-Element :before nicht mehr korrekt gerendert (es hat eine Größe von 0x0 oder wird gar nicht erzeugt). Zudem ist die Animation auf dem Pseudo-Element redundant zur Animation auf dem Container (&__loader, Zeile 6).

				content: '';
				width: to-rem(96);
				height: to-rem(96);
				border-width: 6px;


&:not(:disabled):hover {
box-shadow: 0 2px 8px 2px rgb(8, 35, 48, 0.24);
box-shadow: 0 2px 8px 2px rgba(8, 35, 48, 0.24);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

Der Wert rgba(8, 35, 48, 0.24) ist hartkodiert. Gemäß der DESIGN_TOKENS.md (Zeile 265) sollte dieser Wert als zentrales Design-Token (z. B. --shadow-color) in global.scss definiert werden, um Konsistenz und Wartbarkeit zu gewährleisten. Dies betrifft alle Stellen in diesem Pull Request, an denen dieser Farbwert angepasst wurde.


.#{$block-classname}__text {
outline: var(--border-width) solid;
outline-offset: to-rem(0.05);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

Der Wert to-rem(0.05) ist extrem klein (entspricht ca. 0,05px bei Standard-Rem) und wird daher optisch nicht wahrnehmbar sein. Falls ein minimaler Abstand gewünscht ist, sollte ein Wert von mindestens to-rem(1) verwendet werden.

Suggested change
outline-offset: to-rem(0.05);
outline-offset: to-rem(1);

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.

1 participant