Feature/ucd 180#41
Conversation
|
Hi @kloos-ds, |
|
Frage: unter w: 1220px soll man das Inhaltsverzeichnis nicht mehr einklappen können? |
| --md-default-fg-color--light: var(--ds-color-ink); | ||
|
|
||
| --md-accent-fg-color: var(--ds-color-primary); | ||
| --md-accent-fg-color--transparent: #00a5e120; |
There was a problem hiding this comment.
Eigener Alpha-Token; existiert nicht in unserem CD.
FYI: für eine Var-Alpha-Komposition benötigt man im CSS color-mix()
There was a problem hiding this comment.
verwendet jetzt color-mix()
| --md-custom-accent-color: #15202b; | ||
| --md-custom-text-color: #d7e9f4; | ||
| --md-accent-fg-color: var(--ds-color-dark-clickable); | ||
| --md-accent-fg-color--transparent: #00a5e120; |
There was a problem hiding this comment.
hier noch eine stelle bezüglich eigener Alpha-Token
There was a problem hiding this comment.
verwendet jetzt color-mix()
| .md-tabs__item { | ||
| color: var(--md-typeset-color); | ||
| opacity: 1; | ||
| font-weight: bold; | ||
| font-family: "Inter SemiBold", Arial, Helvetica, sans-serif; | ||
| font-size: 15px; | ||
| font-weight: 600; | ||
| line-height: 24px; | ||
| } |
There was a problem hiding this comment.
font-size/line-height in px (15px, 45px, 40px, 25px, 18px, 13px, 19px …)
Werte selbst korrekt aus typography.*-website/body-md/footer-md/caption-subfooter, aber nicht als Custom Properties gepflegt → bei Token-Update im CD müsste jede Stelle händisch synchronisiert werden
There was a problem hiding this comment.
ersetzt mit properties
| .md-content .md-typeset h1 { | ||
| font-size: 45px; | ||
| line-height: 58.5px; | ||
| margin-bottom: 30px; | ||
| } | ||
|
|
||
| .md-content .md-typeset h2 { | ||
| font-size: 25px; | ||
| font-size: 40px; | ||
| line-height: 52px; | ||
| margin-bottom: 15px; | ||
| } | ||
|
|
||
| .md-content .md-typeset h3 { | ||
| font-size: 25px; | ||
| line-height: 40px; | ||
| margin-bottom: 12px; | ||
| } | ||
|
|
||
| .md-content .md-typeset h4 { | ||
| font-size: 23px; | ||
| line-height: 29.9px; | ||
| margin-bottom: 12px; | ||
| } | ||
|
|
||
| .md-content .md-typeset h5 { | ||
| font-size: 20px; | ||
| line-height: 26px; | ||
| margin-bottom: 12px; | ||
| } | ||
|
|
||
| .md-content .md-typeset h6 { | ||
| font-size: 18px; | ||
| line-height: 24px; | ||
| margin-bottom: 12px; | ||
| } |
There was a problem hiding this comment.
Selbes Feedback wie bei Zeile 130-137.
Sollte sich etwas im CD ändern müsste das alles händisch synchronisiert werden.
There was a problem hiding this comment.
ersetzt mit properties
| <button | ||
| type="button" | ||
| class="ds-toc-toggle md-icon" | ||
| data-md-component="toc-collapse-toggle" | ||
| aria-pressed="false" | ||
| aria-label="Inhaltsverzeichnis ausblenden" | ||
| title="Inhaltsverzeichnis ausblenden" | ||
| hidden | ||
| > |
There was a problem hiding this comment.
hier ebenfalls
Vorschlag:
aria-describedby="" am Button ergänzen
There was a problem hiding this comment.
button hat jetzt describedby
| function maybeShowInitialTooltip(button, tooltip) { | ||
| if (!tooltip || button.hidden) { | ||
| return; | ||
| } | ||
|
|
||
| try { | ||
| if (sessionStorage.getItem(TOOLTIP_STORAGE_KEY) === "true") { | ||
| return; | ||
| } | ||
| } catch (e) { | ||
| return; | ||
| } | ||
|
|
||
| showInitialTooltip(tooltip, button); | ||
| } | ||
|
|
||
| function showInitialTooltip(tooltip, button) { | ||
| if (!tooltip || tooltip.classList.contains("ds-toc-toggle__tooltip--visible")) { | ||
| return; | ||
| } | ||
|
|
||
| try { | ||
| sessionStorage.setItem(TOOLTIP_STORAGE_KEY, "true"); | ||
| } catch (e) {} | ||
|
|
||
| tooltip.hidden = false; | ||
| window.requestAnimationFrame(function () { | ||
| tooltip.classList.add("ds-toc-toggle__tooltip--visible"); | ||
| }); | ||
|
|
||
| window.setTimeout(function () { | ||
| hideTooltip(tooltip); | ||
| }, TOOLTIP_DURATION_MS); | ||
|
|
||
| button.addEventListener( | ||
| "click", | ||
| function () { | ||
| hideTooltip(tooltip); | ||
| }, | ||
| { once: true } | ||
| ); | ||
| } |
There was a problem hiding this comment.
Accessibility:
Tooltip erscheint nur einmalig beim ersten Laden und verschwindet nach fixen 3000ms, ohne dass der Nutzer die Anzeigedauer verlängern/steuern kann. Tastatur-Nutzer, die erst nach den 3s zum Button tabben, sehen den Hinweis nie.
WCAG Criterion 2.2.1
Vorschlag:
Tooltip zusätzlich bei focus/hover auf den Button zeigen (nicht nur beim Page-Load), oder Dauer verlängern/nicht auto-hiden bei Fokus
There was a problem hiding this comment.
wird bei hover jetzt auch angezeigt
| } | ||
|
|
||
| .ds-content-width-toggle { | ||
| --ds-toggle-size: 2rem; |
There was a problem hiding this comment.
Accessibility (Best Practice kein Fehler):
Touch-Target des .ds-content-width-toggle ist im Default-Zustand nur --ds-toggle-size: 2rem (32×32px), erst im "Wide"-Zustand wächst er auf --ds-spacing-control-height (43px).
Vorschlag:
Man könnte hier einheitlich --ds-spacing-control-height (43px) für beide Zustände nutzen oder ist es zu groß dann?
| <span class="ds-toc-toggle__icon ds-toc-toggle__icon--collapse"> | ||
| {% include ".icons/lucide/chevrons-right.svg" %} | ||
| </span> | ||
| <span class="ds-toc-toggle__icon ds-toc-toggle__icon--expand" hidden> | ||
| {% include ".icons/lucide/chevrons-left.svg" %} | ||
| </span> |
There was a problem hiding this comment.
Minor Accessibility:
Die Icon-s (collapse/expand) liegen dauerhaft im DOM, nur eines ist per hidden versteckt. SVGs haben kein aria-hidden="true", das inaktive SVG könnte bei manchen Screenreadern trotzdem als leeres Element auftauchen.
WCAG Criterion: 4.1.2
Vorschlag:
aria-hidden="true" auf beide .ds-*-toggle__icon-Spans setzen (Button-Label trägt die Semantik bereits über aria-label)
There was a problem hiding this comment.
haben jetzt aria-hidden
| <span class="ds-content-width-toggle__icon ds-content-width-toggle__icon--collapse"> | ||
| {% include ".icons/lucide/chevrons-left.svg" %} | ||
| </span> | ||
| <span class="ds-content-width-toggle__icon ds-content-width-toggle__icon--expand" hidden> | ||
| {% include ".icons/lucide/chevrons-right.svg" %} | ||
| </span> |
There was a problem hiding this comment.
Minor Accessibility:
Die Icon-s (collapse/expand) liegen dauerhaft im DOM, nur eines ist per hidden versteckt. SVGs haben kein aria-hidden="true", das inaktive SVG könnte bei manchen Screenreadern trotzdem als leeres Element auftauchen.
WCAG Criterion: 4.1.2
Vorschlag:
aria-hidden="true" auf beide .ds-*-toggle__icon-Spans setzen (Button-Label trägt die Semantik bereits über aria-label)
There was a problem hiding this comment.
haben jetzt aria-hidden
…-theme.css Co-authored-by: ds-giusy <108790481+ds-giusy@users.noreply.github.com>
…-theme.css Co-authored-by: ds-giusy <108790481+ds-giusy@users.noreply.github.com>
…-theme.css Co-authored-by: ds-giusy <108790481+ds-giusy@users.noreply.github.com>
…-theme.css Co-authored-by: ds-giusy <108790481+ds-giusy@users.noreply.github.com>
There was a problem hiding this comment.
changelog will automatically be generated at release time by commitizen, based on the commit messages since last release. please don't maintain in manually.
…ve background from toc title, further feedback
| "accent": "custom", | ||
| "scheme": "slate", | ||
| "toggle": { | ||
| "icon": "lucide/sun-moon", |
There was a problem hiding this comment.
please remove the sun-moon icon if its no longer used.
if the circle-half icon is not from lucide, please move it out of the lucide directory as well.
There was a problem hiding this comment.
removed it and moved the icon out the folder
|
made some mistake while working on the branch |

verbessere doubleSlash im CD-konformität
der Content-Bereich soll durch den User über einen Button verbreitert werden können, so dass sich die beiden Seitenleisten links und rechts "weg klappen" lassen