Skip to content

Feature/ucd 180#41

Closed
kloos-ds wants to merge 9 commits into
mainfrom
feature/UCD-180
Closed

Feature/ucd 180#41
kloos-ds wants to merge 9 commits into
mainfrom
feature/UCD-180

Conversation

@kloos-ds

@kloos-ds kloos-ds commented Jul 2, 2026

Copy link
Copy Markdown
Collaborator

verbessere doubleSlash im CD-konformität

  • Neues Feature:

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

@ds-giusy

ds-giusy commented Jul 7, 2026

Copy link
Copy Markdown

Hi @kloos-ds,
Kannst du bitte hier nachschauen, was den toc-collapse-toggle im dark mode überlagert?
image

@ds-giusy

ds-giusy commented Jul 7, 2026

Copy link
Copy Markdown

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;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Eigener Alpha-Token; existiert nicht in unserem CD.
FYI: für eine Var-Alpha-Komposition benötigt man im CSS color-mix()

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

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;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

hier noch eine stelle bezüglich eigener Alpha-Token

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

verwendet jetzt color-mix()

Comment on lines 130 to 137
.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;
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

ersetzt mit properties

Comment on lines 213 to 247
.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;
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Selbes Feedback wie bei Zeile 130-137.
Sollte sich etwas im CD ändern müsste das alles händisch synchronisiert werden.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

ersetzt mit properties

Comment on lines +10 to +18
<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
>

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

hier ebenfalls

Vorschlag:
aria-describedby="" am Button ergänzen

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

button hat jetzt describedby

Comment on lines +80 to +121
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 }
);
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

wird bei hover jetzt auch angezeigt

}

.ds-content-width-toggle {
--ds-toggle-size: 2rem;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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?

Comment on lines +19 to +24
<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>

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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)

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

haben jetzt aria-hidden

Comment on lines +10 to +15
<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>

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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)

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

haben jetzt aria-hidden

kloos-ds and others added 4 commits July 7, 2026 12:12
…-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>
Comment thread CHANGELOG.md

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

changelog will automatically be generated at release time by commitizen, based on the commit messages since last release. please don't maintain in manually.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

removed it

…ve background from toc title, further feedback
"accent": "custom",
"scheme": "slate",
"toggle": {
"icon": "lucide/sun-moon",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

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.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

removed it and moved the icon out the folder

@kloos-ds

kloos-ds commented Jul 7, 2026

Copy link
Copy Markdown
Collaborator Author

made some mistake while working on the branch
i reopen a clean version on the branch feature/UCD-180-1
sorry for the inconvenience

@kloos-ds kloos-ds closed this Jul 7, 2026
@kloos-ds kloos-ds deleted the feature/UCD-180 branch July 10, 2026 07:47
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