Skip to content

Commit f167111

Browse files
authored
fix: kern theme (#9469)
2 parents e375c82 + efab0e1 commit f167111

File tree

174 files changed

+453
-411
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

174 files changed

+453
-411
lines changed

packages/components/src/components/input-color/style.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
&__inputs-wrapper {
2525
display: flex;
26-
gap: to-rem(6) !important;
26+
gap: to-rem(6);
2727
flex-direction: row;
2828
align-items: center;
2929
}

packages/components/src/components/toolbar/shadow.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,15 @@ export class KolToolbar implements ToolbarAPI {
3838
key: index,
3939
class: 'button normal kol-toolbar__item',
4040
_tabIndex: tabIndex,
41+
_variant: 'normal',
4142
};
4243
const catchRef = (el?: HTMLKolLinkWcElement | HTMLKolButtonWcElement) => {
4344
if (el) this.indexToElement.set(index, el);
4445
};
4546
return element.type === 'link' ? (
46-
<KolLinkWcTag {...element} {...props} ref={catchRef}></KolLinkWcTag>
47+
<KolLinkWcTag {...props} {...element} ref={catchRef}></KolLinkWcTag>
4748
) : (
48-
<KolButtonWcTag {...element} {...props} ref={catchRef}></KolButtonWcTag>
49+
<KolButtonWcTag {...props} {...element} ref={catchRef}></KolButtonWcTag>
4950
);
5051
};
5152

packages/components/src/components/toolbar/test/__snapshots__/snapshot.spec.tsx.snap

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ exports[`kol-toolbar should render with _label="Label horizontal" _items=[{"type
44
<kol-toolbar>
55
<template shadowrootmode="open">
66
<div aria-label="Label horizontal" class="kol-toolbar kol-toolbar--orientation-horizontal" role="toolbar">
7-
<kol-button-wc _label="Button" _tabindex="0" class="button kol-toolbar__item normal" type="button"></kol-button-wc>
8-
<kol-link-wc _href="#" _label="Link" _tabindex="-1" class="button kol-toolbar__item normal" type="link"></kol-link-wc>
7+
<kol-button-wc _label="Button" _tabindex="0" _variant="normal" class="button kol-toolbar__item normal" type="button"></kol-button-wc>
8+
<kol-link-wc _href="#" _label="Link" _tabindex="-1" _variant="normal" class="button kol-toolbar__item normal" type="link"></kol-link-wc>
99
</div>
1010
</template>
1111
</kol-toolbar>
@@ -15,8 +15,8 @@ exports[`kol-toolbar should render with _label="Label vertical" _items=[{"type":
1515
<kol-toolbar>
1616
<template shadowrootmode="open">
1717
<div aria-label="Label vertical" class="kol-toolbar kol-toolbar--orientation-vertical" role="toolbar">
18-
<kol-button-wc _label="Button" _tabindex="0" class="button kol-toolbar__item normal" type="button"></kol-button-wc>
19-
<kol-link-wc _href="#" _label="Link" _tabindex="-1" class="button kol-toolbar__item normal" type="link"></kol-link-wc>
18+
<kol-button-wc _label="Button" _tabindex="0" _variant="normal" class="button kol-toolbar__item normal" type="button"></kol-button-wc>
19+
<kol-link-wc _href="#" _label="Link" _tabindex="-1" _variant="normal" class="button kol-toolbar__item normal" type="link"></kol-link-wc>
2020
</div>
2121
</template>
2222
</kol-toolbar>

packages/components/src/styles/_kol-input-container-mixin.scss

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,8 @@
1010
align-items: center;
1111
grid-template-columns: 1fr;
1212

13-
&:has(> #{$root}__adornment--start:not(:empty)) {
14-
grid-template-columns: auto 1fr;
15-
}
16-
17-
&:has(> #{$root}__adornment--end:not(:empty)) {
18-
grid-template-columns: 1fr auto;
19-
}
20-
21-
&:has(> #{$root}__adornment--start:not(:empty)):has(> #{$root}__adornment--end:not(:empty)) {
13+
&:has(> &__adornment--start) {
14+
// soblad ein adornment gesetzt ist, sind beide im dom
2215
grid-template-columns: auto 1fr auto;
2316
}
2417

Lines changed: 1 addition & 1 deletion

packages/icons/svg/up.svg

Lines changed: 14 additions & 0 deletions

packages/samples/react/src/components/input-file/partials/cases.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export const InputFileCases = forwardRef<HTMLKolInputFileElement, Components.Kol
1919
_label="Upload file (Black background test)"
2020
_icons={{
2121
left: {
22-
icon: 'kolicon-check',
22+
icon: 'kolicon-up',
2323
},
2424
}}
2525
_touched
@@ -34,7 +34,7 @@ export const InputFileCases = forwardRef<HTMLKolInputFileElement, Components.Kol
3434
_label="Upload file (Error State)"
3535
_icons={{
3636
left: {
37-
icon: 'kolicon-check',
37+
icon: 'kolicon-up',
3838
},
3939
}}
4040
_touched
82 Bytes
-75 Bytes
111 Bytes

0 commit comments

Comments
 (0)