Skip to content

Commit

Permalink
refactor: update input components css to use bem styles and mixins (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
sdvg authored Jan 24, 2025
2 parents 9f29a08 + 5cfb819 commit 186a6ab
Show file tree
Hide file tree
Showing 308 changed files with 8,015 additions and 6,227 deletions.
5 changes: 3 additions & 2 deletions packages/components/src/components/a11y.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@import '@shared/mixins';

/*
* This file contains all rules for accessibility.
*/
Expand Down Expand Up @@ -47,8 +49,7 @@
/* select, */
/* textarea, */
[role='button'],
button:not([role='link']),
.kol-input .input {
button:not([role='link']) {
min-height: var(--a11y-min-size);
min-width: var(--a11y-min-size);
}
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/components/abbr/style.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@import '../@shared/mixins';
@import '../style';
@import '../../styles/global';
@import '../tooltip/style.scss';

@layer kol-component {
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/components/accordion/style.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@import '../@shared/mixins';
@import '../style';
@import '../../styles/global';
@import '../host-display-block';
@import '../../functional-components/Collapsible/collapsible';

Expand Down
8 changes: 4 additions & 4 deletions packages/components/src/components/alert/style.scss
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
@import '../../styles/global';
@import '../../styles/kol-alert-mixin';
@import '../@shared/mixins';
@import '../style';
@import '../@shared/kol-alert-mixin';

@include kol-alert;

@layer kol-component {
.kol-alert {
font-size: rem(16);
}
}

@include kol-alert-styles;
2 changes: 1 addition & 1 deletion packages/components/src/components/avatar/style.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@import '../@shared/mixins';
@import '../style';
@import '../../styles/global';
@import '../host-display-block';

@layer kol-component {
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/components/badge/style.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@import '../@shared/mixins';
@import '../style';
@import '../../styles/global';
@import '../tooltip/style.scss';

@layer kol-component {
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/components/breadcrumb/style.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@import '../@shared/mixins';
@import '../style';
@import '../../styles/global';

@layer kol-component {
.kol-breadcrumb {
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/components/button-link/style.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@import '../@shared/mixins';
@import '../style';
@import '../../styles/global';
@import '../@shared/kol-link-mixin';

@include kol-link-styles('kol-button');
2 changes: 1 addition & 1 deletion packages/components/src/components/button/style.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@import '../@shared/mixins';
@import '../style';
@import '../../styles/global';
@import '../@shared/kol-button-mixin';

@include kol-button-styles('kol-button');
2 changes: 1 addition & 1 deletion packages/components/src/components/card/style.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@import '../@shared/mixins';
@import '../style';
@import '../../styles/global';
@import '../tooltip/style.scss';

@layer kol-component {
Expand Down
13 changes: 11 additions & 2 deletions packages/components/src/components/combobox/style.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
@import '../../styles/global';
@import '../@shared/mixins';
@import '../style';
@import '../input-line';
@import '../host-display-block';
@import '../tooltip/style';

@layer kol-component {
:host {
Expand Down Expand Up @@ -28,6 +29,10 @@

&__input {
flex-grow: 1;

&:focus {
outline: none;
}
}

&__icon {
Expand Down Expand Up @@ -59,4 +64,8 @@
}
}
}

.kol-input {
display: grid;
}
}
2 changes: 1 addition & 1 deletion packages/components/src/components/details/style.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@import '../@shared/mixins';
@import '../style';
@import '../../styles/global';
@import '../host-display-block';
@import '../../functional-components/Collapsible/collapsible';

Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/components/drawer/style.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@import '../@shared/mixins';
@import '../style';
@import '../../styles/global';

@layer kol-component {
.kol-drawer {
Expand Down
8 changes: 5 additions & 3 deletions packages/components/src/components/form/style.scss
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
@import '../@shared/mixins';
@import '../style';
@import '../input-line';
@import '../../styles/global';
@import '../host-display-block';
@import '../@shared/kol-link-mixin';
@import '../../styles/kol-alert-mixin';

@layer kol-component {
@include kol-link-styles('kol-link');
@include kol-alert-styles;
@include kol-alert;

.kol-form {
font-size: rem(16);
}
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/components/heading/style.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@import '../@shared/mixins';
@import '../style';
@import '../../styles/global';

@layer kol-component {
.kol-headline {
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/components/image/style.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@import '../@shared/mixins';
@import '../style';
@import '../../styles/global';

@layer kol-component {
.kol-image {
Expand Down
43 changes: 0 additions & 43 deletions packages/components/src/components/input-checkbox/button.scss

This file was deleted.

29 changes: 0 additions & 29 deletions packages/components/src/components/input-checkbox/checkbox.scss

This file was deleted.

86 changes: 0 additions & 86 deletions packages/components/src/components/input-checkbox/common.scss

This file was deleted.

Loading

0 comments on commit 186a6ab

Please sign in to comment.