Skip to content

Commit

Permalink
Refactor nav and progress
Browse files Browse the repository at this point in the history
Refs: #7036
  • Loading branch information
anicyne committed Dec 16, 2024
1 parent 551e328 commit 34b0f86
Show file tree
Hide file tree
Showing 7 changed files with 41 additions and 41 deletions.
2 changes: 1 addition & 1 deletion packages/components/src/components/progress/shadow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ export class KolProcess implements ProgressAPI {
max={this.state._max}
value={this.state._value}
></progress>
<span aria-live="polite" aria-relevant="removals text" class="visually-hidden">
<span class="kol-progress__span" aria-live="polite" aria-relevant="removals text" class="visually-hidden">
{this.state._liveValue} von {this.state._max} {this.state._unit}
</span>
</div>
Expand Down
10 changes: 5 additions & 5 deletions packages/themes/default/src/components/nav.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
&--nested {
padding-left: rem(16);

a,
button {
.kol-link-wc,
.kol-button-wc {
font-weight: normal !important;
border-left-color: transparent !important;
}
Expand All @@ -31,12 +31,12 @@
}

&--item {
a:hover {
.kol-link-wc:hover {
text-decoration: underline;
}

a,
button {
.kol-link-wc,
.kol-button-wc {
align-items: center;
color: var(--color-primary);
display: flex;
Expand Down
22 changes: 11 additions & 11 deletions packages/themes/default/src/components/progress.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
font-family: var(--font-family);

&__progress,
span {
&__span {
display: block;
height: 0;
overflow: hidden;
Expand All @@ -17,17 +17,17 @@
stroke: var(--color-primary-variant);
}
}
}

svg line:first-child,
svg circle:first-child {
fill: transparent;
stroke: var(--color-mute-variant);
}
&__line line:first-child,
&__cycle circle:first-child {
fill: transparent;
stroke: var(--color-mute-variant);
}

svg line:last-child,
svg circle:last-child {
fill: transparent;
stroke: var(--color-primary);
&__line line:last-child,
&__cycle circle:last-child {
fill: transparent;
stroke: var(--color-primary);
}
}
}
2 changes: 1 addition & 1 deletion packages/themes/ecl/src/ecl-ec/components/nav.scss
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
flex-grow: 1;
}

&--expand-button button {
&--expand-button .kol-button-wc {
background-color: var(--color-blue-130);
margin: auto;
height: 100%;
Expand Down
22 changes: 11 additions & 11 deletions packages/themes/ecl/src/ecl-ec/components/progress.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
font-family: var(--font-family);

&__progress,
span {
&__span {
display: block;
height: 0;
overflow: hidden;
Expand All @@ -15,17 +15,17 @@
&__progress {
display: none;
}
}

svg line:first-child,
svg circle:first-child {
fill: transparent;
stroke: var(--color-grey-25);
}
&__line line:first-child,
&__circle circle:first-child {
fill: transparent;
stroke: var(--color-grey-25);
}

svg line:last-child,
svg circle:last-child {
stroke: var(--color-blue-130);
fill: transparent;
&__line line:last-child,
&__circle circle:last-child {
stroke: var(--color-blue-130);
fill: transparent;
}
}
}
2 changes: 1 addition & 1 deletion packages/themes/itzbund/src/components/nav.scss
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
border-bottom: 0.375em solid var(--color-citrin);
}

a {
.kol-link-wc {
border-radius: var(--border-radius);
background-color: var(--color-petrol);
border: rem(1) solid transparent;
Expand Down
22 changes: 11 additions & 11 deletions packages/themes/itzbund/src/components/progress.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
--kolibri-text-label-padding: #{rem(60)};

&__progress,
span {
&__span {
display: block;
height: 0;
overflow: hidden;
Expand All @@ -15,17 +15,17 @@
&__progress {
display: none;
}
}

svg line:first-child,
svg circle:first-child {
fill: transparent;
stroke: var(--color-fluorit);
}
&__line line:first-child,
&__circle circle:first-child {
fill: transparent;
stroke: var(--color-fluorit);
}

svg line:last-child,
svg circle:last-child {
stroke: var(--color-achat);
fill: transparent;
&__line line:last-child,
&__circle circle:last-child {
stroke: var(--color-achat);
fill: transparent;
}
}
}

0 comments on commit 34b0f86

Please sign in to comment.