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

Error message styling #1150

Merged
merged 9 commits into from
Nov 6, 2023
9 changes: 5 additions & 4 deletions frontend/elements/example.css
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@

.hanko_exclamationMark {
fill: var(--error-color, #e82020);
padding-right: 5px
padding: 1px 6px 0 4px
}

.hanko_loadingSpinnerWrapperIcon {
Expand Down Expand Up @@ -338,12 +338,13 @@
border-width: var(--border-width, 1px);
color: var(--error-color, #e82020);
background: var(--background-color, white);
padding: .25rem;
padding: .50rem 1.5rem .50rem .50rem;
margin: var(--item-margin, 0.5rem 0);
min-height: var(--item-height, 42px);
display: flex;
align-items: center;
box-sizing: border-box
align-items: start;
box-sizing: border-box;
line-height: 20px;
}

.hanko_errorMessage>span:first-child {
Expand Down
6 changes: 4 additions & 2 deletions frontend/elements/src/components/error/styles.sass
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,16 @@
color: variables.$error-color
background: variables.$background-color

padding: .25rem
padding: .5rem
margin: variables.$item-margin
min-height: variables.$item-height

display: flex
align-items: center
align-items: start
box-sizing: border-box

line-height: 1.4

&>span:first-child
display: inline-flex

Expand Down
2 changes: 1 addition & 1 deletion frontend/elements/src/components/icons/styles.sass
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
.exclamationMark
@extend .icon
fill: variables.$error-color
padding-right: 5px
padding: 1px 6px 0 4px
Esther-Lita marked this conversation as resolved.
Show resolved Hide resolved

// Loading Spinner Styles

Expand Down
Loading