Skip to content
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

Apply BEM refactoring to Span & Heading #7154

Merged
merged 19 commits into from
Dec 9, 2024
Merged
Show file tree
Hide file tree
Changes from 17 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
text-decoration-line: none;

&__text {
.span-label {
.kol-span__label {
text-decoration-line: underline;

@at-root #{$root}:is(:focus, :hover):not([aria-disabled], [disabled]) & {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ exports[`kol-accordion should render with _label="Überschrift" _level=1 _open=f
<kol-accordion>
<template shadowrootmode="open">
<div class="collapsible kol-accordion" id="nonce">
<h1 class="collapsible__heading headline headline-h1 kol-accordion__heading kol-heading-wc">
<kol-button-wc _ariacontrols="nonce-control" _icons="codicon codicon-add" _label="Überschrift" class="collapsible__heading-button kol-accordion__heading-button" slot="expert"></kol-button-wc>
</h1>
<div class="kol-heading">
AlexanderSchmidtCE marked this conversation as resolved.
Show resolved Hide resolved
<h1 class="collapsible__heading kol-accordion__heading kol-heading--h1 kol-heading__headline">
<kol-button-wc _ariacontrols="nonce-control" _icons="codicon codicon-add" _label="Überschrift" class="collapsible__heading-button kol-accordion__heading-button" slot="expert"></kol-button-wc>
</h1>
</div>
<div class="collapsible__wrapper kol-accordion__wrapper">
<div class="collapsible__wrapper-animation kol-accordion__wrapper-animation">
<div aria-hidden="true" class="collapsible__content kol-accordion__content" id="nonce-control">
Expand All @@ -23,9 +25,11 @@ exports[`kol-accordion should render with _label="Überschrift" _level=1 _open=f
<kol-accordion>
<template shadowrootmode="open">
<div class="collapsible disabled kol-accordion" id="nonce">
<h1 class="collapsible__heading headline headline-h1 kol-accordion__heading kol-heading-wc">
<kol-button-wc _ariacontrols="nonce-control" _disabled="" _icons="codicon codicon-add" _label="Überschrift" class="collapsible__heading-button kol-accordion__heading-button" slot="expert"></kol-button-wc>
</h1>
<div class="kol-heading">
<h1 class="collapsible__heading kol-accordion__heading kol-heading--h1 kol-heading__headline">
AlexanderSchmidtCE marked this conversation as resolved.
Show resolved Hide resolved
<kol-button-wc _ariacontrols="nonce-control" _disabled="" _icons="codicon codicon-add" _label="Überschrift" class="collapsible__heading-button kol-accordion__heading-button" slot="expert"></kol-button-wc>
</h1>
</div>
<div class="collapsible__wrapper kol-accordion__wrapper">
<div class="collapsible__wrapper-animation kol-accordion__wrapper-animation">
<div aria-hidden="true" class="collapsible__content kol-accordion__content" id="nonce-control">
Expand All @@ -42,9 +46,11 @@ exports[`kol-accordion should render with _label="Überschrift" _level=1 _open=t
<kol-accordion _open="">
<template shadowrootmode="open">
<div class="collapsible kol-accordion open" id="nonce">
<h1 class="collapsible__heading headline headline-h1 kol-accordion__heading kol-heading-wc">
<kol-button-wc _ariacontrols="nonce-control" _ariaexpanded="" _icons="codicon codicon-remove" _label="Überschrift" class="collapsible__heading-button kol-accordion__heading-button" slot="expert"></kol-button-wc>
</h1>
<div class="kol-heading">
<h1 class="collapsible__heading kol-accordion__heading kol-heading--h1 kol-heading__headline">
<kol-button-wc _ariacontrols="nonce-control" _ariaexpanded="" _icons="codicon codicon-remove" _label="Überschrift" class="collapsible__heading-button kol-accordion__heading-button" slot="expert"></kol-button-wc>
</h1>
</div>
<div class="collapsible__wrapper kol-accordion__wrapper">
<div class="collapsible__wrapper-animation kol-accordion__wrapper-animation">
<div class="collapsible__content kol-accordion__content" id="nonce-control">
Expand All @@ -61,9 +67,11 @@ exports[`kol-accordion should render with _label="Überschrift" _level=1 _open=t
<kol-accordion _open="">
<template shadowrootmode="open">
<div class="collapsible disabled kol-accordion open" id="nonce">
<h1 class="collapsible__heading headline headline-h1 kol-accordion__heading kol-heading-wc">
<kol-button-wc _ariacontrols="nonce-control" _ariaexpanded="" _disabled="" _icons="codicon codicon-remove" _label="Überschrift" class="collapsible__heading-button kol-accordion__heading-button" slot="expert"></kol-button-wc>
</h1>
<div class="kol-heading">
<h1 class="collapsible__heading kol-accordion__heading kol-heading--h1 kol-heading__headline">
<kol-button-wc _ariacontrols="nonce-control" _ariaexpanded="" _disabled="" _icons="codicon codicon-remove" _label="Überschrift" class="collapsible__heading-button kol-accordion__heading-button" slot="expert"></kol-button-wc>
</h1>
</div>
<div class="collapsible__wrapper kol-accordion__wrapper">
<div class="collapsible__wrapper-animation kol-accordion__wrapper-animation">
<div class="collapsible__content kol-accordion__content" id="nonce-control">
Expand All @@ -80,9 +88,11 @@ exports[`kol-accordion should render with _label="Überschrift" _level=1 1`] = `
<kol-accordion>
<template shadowrootmode="open">
<div class="collapsible kol-accordion" id="nonce">
<h1 class="collapsible__heading headline headline-h1 kol-accordion__heading kol-heading-wc">
<kol-button-wc _ariacontrols="nonce-control" _icons="codicon codicon-add" _label="Überschrift" class="collapsible__heading-button kol-accordion__heading-button" slot="expert"></kol-button-wc>
</h1>
<div class="kol-heading">
<h1 class="collapsible__heading kol-accordion__heading kol-heading--h1 kol-heading__headline">
<kol-button-wc _ariacontrols="nonce-control" _icons="codicon codicon-add" _label="Überschrift" class="collapsible__heading-button kol-accordion__heading-button" slot="expert"></kol-button-wc>
</h1>
</div>
<div class="collapsible__wrapper kol-accordion__wrapper">
<div class="collapsible__wrapper-animation kol-accordion__wrapper-animation">
<div aria-hidden="true" class="collapsible__content kol-accordion__content" id="nonce-control">
Expand All @@ -99,9 +109,11 @@ exports[`kol-accordion should render with _label="Überschrift" _level=2 1`] = `
<kol-accordion>
<template shadowrootmode="open">
<div class="collapsible kol-accordion" id="nonce">
<h2 class="collapsible__heading headline headline-h2 kol-accordion__heading kol-heading-wc">
<kol-button-wc _ariacontrols="nonce-control" _icons="codicon codicon-add" _label="Überschrift" class="collapsible__heading-button kol-accordion__heading-button" slot="expert"></kol-button-wc>
</h2>
<div class="kol-heading">
<h2 class="collapsible__heading kol-accordion__heading kol-heading--h2 kol-heading__headline">
<kol-button-wc _ariacontrols="nonce-control" _icons="codicon codicon-add" _label="Überschrift" class="collapsible__heading-button kol-accordion__heading-button" slot="expert"></kol-button-wc>
</h2>
</div>
<div class="collapsible__wrapper kol-accordion__wrapper">
<div class="collapsible__wrapper-animation kol-accordion__wrapper-animation">
<div aria-hidden="true" class="collapsible__content kol-accordion__content" id="nonce-control">
Expand All @@ -118,9 +130,11 @@ exports[`kol-accordion should render with _label="Überschrift" _level=3 1`] = `
<kol-accordion>
<template shadowrootmode="open">
<div class="collapsible kol-accordion" id="nonce">
<h3 class="collapsible__heading headline headline-h3 kol-accordion__heading kol-heading-wc">
<kol-button-wc _ariacontrols="nonce-control" _icons="codicon codicon-add" _label="Überschrift" class="collapsible__heading-button kol-accordion__heading-button" slot="expert"></kol-button-wc>
</h3>
<div class="kol-heading">
<h3 class="collapsible__heading kol-accordion__heading kol-heading--h3 kol-heading__headline">
<kol-button-wc _ariacontrols="nonce-control" _icons="codicon codicon-add" _label="Überschrift" class="collapsible__heading-button kol-accordion__heading-button" slot="expert"></kol-button-wc>
</h3>
</div>
<div class="collapsible__wrapper kol-accordion__wrapper">
<div class="collapsible__wrapper-animation kol-accordion__wrapper-animation">
<div aria-hidden="true" class="collapsible__content kol-accordion__content" id="nonce-control">
Expand All @@ -137,9 +151,11 @@ exports[`kol-accordion should render with _label="Überschrift" _level=4 1`] = `
<kol-accordion>
<template shadowrootmode="open">
<div class="collapsible kol-accordion" id="nonce">
<h4 class="collapsible__heading headline headline-h4 kol-accordion__heading kol-heading-wc">
<kol-button-wc _ariacontrols="nonce-control" _icons="codicon codicon-add" _label="Überschrift" class="collapsible__heading-button kol-accordion__heading-button" slot="expert"></kol-button-wc>
</h4>
<div class="kol-heading">
<h4 class="collapsible__heading kol-accordion__heading kol-heading--h4 kol-heading__headline">
<kol-button-wc _ariacontrols="nonce-control" _icons="codicon codicon-add" _label="Überschrift" class="collapsible__heading-button kol-accordion__heading-button" slot="expert"></kol-button-wc>
</h4>
</div>
<div class="collapsible__wrapper kol-accordion__wrapper">
<div class="collapsible__wrapper-animation kol-accordion__wrapper-animation">
<div aria-hidden="true" class="collapsible__content kol-accordion__content" id="nonce-control">
Expand All @@ -156,9 +172,11 @@ exports[`kol-accordion should render with _label="Überschrift" _level=5 1`] = `
<kol-accordion>
<template shadowrootmode="open">
<div class="collapsible kol-accordion" id="nonce">
<h5 class="collapsible__heading headline headline-h5 kol-accordion__heading kol-heading-wc">
<kol-button-wc _ariacontrols="nonce-control" _icons="codicon codicon-add" _label="Überschrift" class="collapsible__heading-button kol-accordion__heading-button" slot="expert"></kol-button-wc>
</h5>
<div class="kol-heading">
<h5 class="collapsible__heading kol-accordion__heading kol-heading--h5 kol-heading__headline">
<kol-button-wc _ariacontrols="nonce-control" _icons="codicon codicon-add" _label="Überschrift" class="collapsible__heading-button kol-accordion__heading-button" slot="expert"></kol-button-wc>
</h5>
</div>
<div class="collapsible__wrapper kol-accordion__wrapper">
<div class="collapsible__wrapper-animation kol-accordion__wrapper-animation">
<div aria-hidden="true" class="collapsible__content kol-accordion__content" id="nonce-control">
Expand All @@ -175,9 +193,11 @@ exports[`kol-accordion should render with _label="Überschrift" _level=6 1`] = `
<kol-accordion>
<template shadowrootmode="open">
<div class="collapsible kol-accordion" id="nonce">
<h6 class="collapsible__heading headline headline-h6 kol-accordion__heading kol-heading-wc">
<kol-button-wc _ariacontrols="nonce-control" _icons="codicon codicon-add" _label="Überschrift" class="collapsible__heading-button kol-accordion__heading-button" slot="expert"></kol-button-wc>
</h6>
<div class="kol-heading">
<h6 class="collapsible__heading kol-accordion__heading kol-heading--h6 kol-heading__headline">
<kol-button-wc _ariacontrols="nonce-control" _icons="codicon codicon-add" _label="Überschrift" class="collapsible__heading-button kol-accordion__heading-button" slot="expert"></kol-button-wc>
</h6>
</div>
<div class="collapsible__wrapper kol-accordion__wrapper">
<div class="collapsible__wrapper-animation kol-accordion__wrapper-animation">
<div aria-hidden="true" class="collapsible__content kol-accordion__content" id="nonce-control">
Expand All @@ -194,9 +214,11 @@ exports[`kol-accordion should render with _label="Überschrift" 1`] = `
<kol-accordion>
<template shadowrootmode="open">
<div class="collapsible kol-accordion" id="nonce">
<h1 class="collapsible__heading headline headline-h1 kol-accordion__heading kol-heading-wc">
<kol-button-wc _ariacontrols="nonce-control" _icons="codicon codicon-add" _label="Überschrift" class="collapsible__heading-button kol-accordion__heading-button" slot="expert"></kol-button-wc>
</h1>
<div class="kol-heading">
<h1 class="collapsible__heading kol-accordion__heading kol-heading--h1 kol-heading__headline">
<kol-button-wc _ariacontrols="nonce-control" _icons="codicon codicon-add" _label="Überschrift" class="collapsible__heading-button kol-accordion__heading-button" slot="expert"></kol-button-wc>
</h1>
</div>
<div class="collapsible__wrapper kol-accordion__wrapper">
<div class="collapsible__wrapper-animation kol-accordion__wrapper-animation">
<div aria-hidden="true" class="collapsible__content kol-accordion__content" id="nonce-control">
Expand Down
Loading
Loading