Skip to content

Commit

Permalink
Merge branch 'develop' of https://github.com/public-ui/kolibri into v…
Browse files Browse the repository at this point in the history
…2/6050_bmf-scss-refactor
  • Loading branch information
deleonio committed Mar 8, 2024
1 parent faf6e98 commit 6982d44
Show file tree
Hide file tree
Showing 125 changed files with 8,505 additions and 4,449 deletions.
4 changes: 2 additions & 2 deletions packages/components/src/components/@shared/form-field-msg.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ type FormFieldMsgProps = {
};

export const FormFieldMsg: FunctionalComponent<FormFieldMsgProps> = ({ _alert, _error, _hideError, _id }) => (
<kol-alert
<kol-alert-wc
/**
* This message is read out by screen readers if the input field
* refers to the message using the <code>aria-describedby</code>
Expand All @@ -27,5 +27,5 @@ export const FormFieldMsg: FunctionalComponent<FormFieldMsgProps> = ({ _alert, _
}}
>
{_error}
</kol-alert>
</kol-alert-wc>
);
24 changes: 24 additions & 0 deletions packages/components/src/components/@shared/kol-alert-mixin.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
@import '../style';
@import '../host-display-block';

@mixin kol-alert-styles {
@layer kol-component {
.kol-alert-wc {
display: grid;
}

.kol-alert-wc .heading {
display: flex;
place-items: center;
}

.kol-alert-wc .heading > div {
flex-grow: 1;
}

.close {
/* Visible with forced colors */
outline: transparent solid 1px;
}
}
}
4 changes: 4 additions & 0 deletions packages/components/src/components/alert/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ Bei der **Alert**-Komponente wurden insbesondere folgende Punkte der Barrierefre
### Used by

- [kol-alert](.)
- kol-input
- [kol-input-radio](../input-radio)

### Depends on

Expand All @@ -119,6 +121,8 @@ graph TD;
kol-span-wc --> kol-icon
kol-tooltip-wc --> kol-span-wc
kol-alert --> kol-alert-wc
kol-input --> kol-alert-wc
kol-input-radio --> kol-alert-wc
style kol-alert-wc stroke:#333,stroke-width:4px
```

Expand Down
23 changes: 2 additions & 21 deletions packages/components/src/components/alert/style.scss
Original file line number Diff line number Diff line change
@@ -1,22 +1,3 @@
@import '../style';
@import '../host-display-block';
@import '../@shared/kol-alert-mixin.scss';

@layer kol-component {
.kol-alert-wc {
display: grid;
}

.kol-alert-wc .heading {
display: flex;
place-items: center;
}

.kol-alert-wc .heading > div {
flex-grow: 1;
}

.close {
/* Visible with forced colors */
outline: transparent solid 1px;
}
}
@include kol-alert-styles;
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
position: absolute;
z-index: 1;
}

&:not(.checked):not(.indeterminate) .icon::part(icon) {
display: none;
}
Expand Down
3 changes: 1 addition & 2 deletions packages/components/src/components/input-checkbox/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,11 @@ graph TD;
kol-input --> kol-icon
kol-input --> kol-button-wc
kol-input --> kol-tooltip-wc
kol-input --> kol-alert
kol-input --> kol-alert-wc
kol-button-wc --> kol-span-wc
kol-button-wc --> kol-tooltip-wc
kol-span-wc --> kol-icon
kol-tooltip-wc --> kol-span-wc
kol-alert --> kol-alert-wc
kol-alert-wc --> kol-heading-wc
kol-alert-wc --> kol-button-wc
kol-alert-wc --> kol-icon
Expand Down
3 changes: 3 additions & 0 deletions packages/components/src/components/input-checkbox/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@
@import 'button';
@import 'checkbox';
@import 'switch';
@import '../@shared/kol-alert-mixin.scss';

@include kol-alert-styles;
3 changes: 1 addition & 2 deletions packages/components/src/components/input-color/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,11 @@ graph TD;
kol-input --> kol-icon
kol-input --> kol-button-wc
kol-input --> kol-tooltip-wc
kol-input --> kol-alert
kol-input --> kol-alert-wc
kol-button-wc --> kol-span-wc
kol-button-wc --> kol-tooltip-wc
kol-span-wc --> kol-icon
kol-tooltip-wc --> kol-span-wc
kol-alert --> kol-alert-wc
kol-alert-wc --> kol-heading-wc
kol-alert-wc --> kol-button-wc
kol-alert-wc --> kol-icon
Expand Down
3 changes: 3 additions & 0 deletions packages/components/src/components/input-color/style.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
@import '../input-line';
@import '../@shared/kol-alert-mixin.scss';

@include kol-alert-styles;

@layer kol-component {
div.input {
Expand Down
3 changes: 1 addition & 2 deletions packages/components/src/components/input-date/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,12 +132,11 @@ graph TD;
kol-input --> kol-icon
kol-input --> kol-button-wc
kol-input --> kol-tooltip-wc
kol-input --> kol-alert
kol-input --> kol-alert-wc
kol-button-wc --> kol-span-wc
kol-button-wc --> kol-tooltip-wc
kol-span-wc --> kol-icon
kol-tooltip-wc --> kol-span-wc
kol-alert --> kol-alert-wc
kol-alert-wc --> kol-heading-wc
kol-alert-wc --> kol-button-wc
kol-alert-wc --> kol-icon
Expand Down
3 changes: 3 additions & 0 deletions packages/components/src/components/input-date/style.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
@import '../input-line';
@import '../@shared/kol-alert-mixin.scss';

@include kol-alert-styles;

@layer kol-component {
.kol-input-number {
Expand Down
3 changes: 1 addition & 2 deletions packages/components/src/components/input-email/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,11 @@ graph TD;
kol-input --> kol-icon
kol-input --> kol-button-wc
kol-input --> kol-tooltip-wc
kol-input --> kol-alert
kol-input --> kol-alert-wc
kol-button-wc --> kol-span-wc
kol-button-wc --> kol-tooltip-wc
kol-span-wc --> kol-icon
kol-tooltip-wc --> kol-span-wc
kol-alert --> kol-alert-wc
kol-alert-wc --> kol-heading-wc
kol-alert-wc --> kol-button-wc
kol-alert-wc --> kol-icon
Expand Down
3 changes: 3 additions & 0 deletions packages/components/src/components/input-email/style.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
@import '../input-line';
@import '../@shared/kol-alert-mixin.scss';

@include kol-alert-styles;

@layer kol-component {
}
3 changes: 1 addition & 2 deletions packages/components/src/components/input-file/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,11 @@ graph TD;
kol-input --> kol-icon
kol-input --> kol-button-wc
kol-input --> kol-tooltip-wc
kol-input --> kol-alert
kol-input --> kol-alert-wc
kol-button-wc --> kol-span-wc
kol-button-wc --> kol-tooltip-wc
kol-span-wc --> kol-icon
kol-tooltip-wc --> kol-span-wc
kol-alert --> kol-alert-wc
kol-alert-wc --> kol-heading-wc
kol-alert-wc --> kol-button-wc
kol-alert-wc --> kol-icon
Expand Down
3 changes: 3 additions & 0 deletions packages/components/src/components/input-file/style.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
@import '../input-line';
@import '../@shared/kol-alert-mixin.scss';

@include kol-alert-styles;

@layer kol-component {
label input[type='file']::-webkit-file-upload-button {
Expand Down
3 changes: 1 addition & 2 deletions packages/components/src/components/input-number/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,11 @@ graph TD;
kol-input --> kol-icon
kol-input --> kol-button-wc
kol-input --> kol-tooltip-wc
kol-input --> kol-alert
kol-input --> kol-alert-wc
kol-button-wc --> kol-span-wc
kol-button-wc --> kol-tooltip-wc
kol-span-wc --> kol-icon
kol-tooltip-wc --> kol-span-wc
kol-alert --> kol-alert-wc
kol-alert-wc --> kol-heading-wc
kol-alert-wc --> kol-button-wc
kol-alert-wc --> kol-icon
Expand Down
3 changes: 3 additions & 0 deletions packages/components/src/components/input-number/style.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
@import '../input-line';
@import '../@shared/kol-alert-mixin.scss';

@include kol-alert-styles;

@layer kol-component {
}
3 changes: 1 addition & 2 deletions packages/components/src/components/input-password/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,11 @@ graph TD;
kol-input --> kol-icon
kol-input --> kol-button-wc
kol-input --> kol-tooltip-wc
kol-input --> kol-alert
kol-input --> kol-alert-wc
kol-button-wc --> kol-span-wc
kol-button-wc --> kol-tooltip-wc
kol-span-wc --> kol-icon
kol-tooltip-wc --> kol-span-wc
kol-alert --> kol-alert-wc
kol-alert-wc --> kol-heading-wc
kol-alert-wc --> kol-button-wc
kol-alert-wc --> kol-icon
Expand Down
3 changes: 3 additions & 0 deletions packages/components/src/components/input-password/style.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
@import '../input-line';
@import '../@shared/kol-alert-mixin.scss';

@include kol-alert-styles;

@layer kol-component {
}
7 changes: 3 additions & 4 deletions packages/components/src/components/input-radio/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,23 +116,22 @@ Type: `Promise<W3CInputValue | undefined>`
### Depends on

- kol-input
- [kol-alert](../alert)
- [kol-alert-wc](../alert)

### Graph

```mermaid
graph TD;
kol-input-radio --> kol-input
kol-input-radio --> kol-alert
kol-input-radio --> kol-alert-wc
kol-input --> kol-icon
kol-input --> kol-button-wc
kol-input --> kol-tooltip-wc
kol-input --> kol-alert
kol-input --> kol-alert-wc
kol-button-wc --> kol-span-wc
kol-button-wc --> kol-tooltip-wc
kol-span-wc --> kol-icon
kol-tooltip-wc --> kol-span-wc
kol-alert --> kol-alert-wc
kol-alert-wc --> kol-heading-wc
kol-alert-wc --> kol-button-wc
kol-alert-wc --> kol-icon
Expand Down
3 changes: 3 additions & 0 deletions packages/components/src/components/input-radio/style.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
@import '../input';
@import '../@shared/kol-alert-mixin.scss';

@include kol-alert-styles;

@layer kol-component {
:host {
Expand Down
3 changes: 1 addition & 2 deletions packages/components/src/components/input-range/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,11 @@ graph TD;
kol-input --> kol-icon
kol-input --> kol-button-wc
kol-input --> kol-tooltip-wc
kol-input --> kol-alert
kol-input --> kol-alert-wc
kol-button-wc --> kol-span-wc
kol-button-wc --> kol-tooltip-wc
kol-span-wc --> kol-icon
kol-tooltip-wc --> kol-span-wc
kol-alert --> kol-alert-wc
kol-alert-wc --> kol-heading-wc
kol-alert-wc --> kol-button-wc
kol-alert-wc --> kol-icon
Expand Down
3 changes: 3 additions & 0 deletions packages/components/src/components/input-range/style.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
@import '../input-line';
@import '../@shared/kol-alert-mixin.scss';

@include kol-alert-styles;

@layer kol-component {
.inputs-wrapper {
Expand Down
3 changes: 1 addition & 2 deletions packages/components/src/components/input-text/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,11 @@ graph TD;
kol-input --> kol-icon
kol-input --> kol-button-wc
kol-input --> kol-tooltip-wc
kol-input --> kol-alert
kol-input --> kol-alert-wc
kol-button-wc --> kol-span-wc
kol-button-wc --> kol-tooltip-wc
kol-span-wc --> kol-icon
kol-tooltip-wc --> kol-span-wc
kol-alert --> kol-alert-wc
kol-alert-wc --> kol-heading-wc
kol-alert-wc --> kol-button-wc
kol-alert-wc --> kol-icon
Expand Down
3 changes: 3 additions & 0 deletions packages/components/src/components/input-text/style.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
@import '../input-line';
@import '../@shared/kol-alert-mixin.scss';

@include kol-alert-styles;

@layer kol-component {
}
3 changes: 3 additions & 0 deletions packages/components/src/components/input/style.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@import '../@shared/kol-alert-mixin.scss';

@include kol-alert-styles;
3 changes: 1 addition & 2 deletions packages/components/src/components/pagination/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,7 @@ graph TD;
kol-input --> kol-icon
kol-input --> kol-button-wc
kol-input --> kol-tooltip-wc
kol-input --> kol-alert
kol-alert --> kol-alert-wc
kol-input --> kol-alert-wc
kol-alert-wc --> kol-heading-wc
kol-alert-wc --> kol-button-wc
kol-alert-wc --> kol-icon
Expand Down
3 changes: 1 addition & 2 deletions packages/components/src/components/select/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,12 +144,11 @@ graph TD;
kol-input --> kol-icon
kol-input --> kol-button-wc
kol-input --> kol-tooltip-wc
kol-input --> kol-alert
kol-input --> kol-alert-wc
kol-button-wc --> kol-span-wc
kol-button-wc --> kol-tooltip-wc
kol-span-wc --> kol-icon
kol-tooltip-wc --> kol-span-wc
kol-alert --> kol-alert-wc
kol-alert-wc --> kol-heading-wc
kol-alert-wc --> kol-button-wc
kol-alert-wc --> kol-icon
Expand Down
3 changes: 1 addition & 2 deletions packages/components/src/components/table/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,7 @@ graph TD;
kol-input --> kol-icon
kol-input --> kol-button-wc
kol-input --> kol-tooltip-wc
kol-input --> kol-alert
kol-alert --> kol-alert-wc
kol-input --> kol-alert-wc
kol-alert-wc --> kol-heading-wc
kol-alert-wc --> kol-button-wc
kol-alert-wc --> kol-icon
Expand Down
3 changes: 1 addition & 2 deletions packages/components/src/components/textarea/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,11 @@ graph TD;
kol-input --> kol-icon
kol-input --> kol-button-wc
kol-input --> kol-tooltip-wc
kol-input --> kol-alert
kol-input --> kol-alert-wc
kol-button-wc --> kol-span-wc
kol-button-wc --> kol-tooltip-wc
kol-span-wc --> kol-icon
kol-tooltip-wc --> kol-span-wc
kol-alert --> kol-alert-wc
kol-alert-wc --> kol-heading-wc
kol-alert-wc --> kol-button-wc
kol-alert-wc --> kol-icon
Expand Down
3 changes: 2 additions & 1 deletion packages/themes/bmf/src/components/abbr.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
border-bottom: dashed var(--color-black) 1px;
text-decoration: none !important;
}
}

}
Loading

0 comments on commit 6982d44

Please sign in to comment.