Skip to content

Commit

Permalink
Error message styling
Browse files Browse the repository at this point in the history
Improving the error message styling to optimise most users first look when misconfiguring App URL on Hanko Cloud

Commit Type: chore
  • Loading branch information
Esther-Lita committed Oct 30, 2023
1 parent 25b6725 commit 4248a73
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
7 changes: 4 additions & 3 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-right: 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
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: .50rem 1.5rem .50rem .50rem
margin: variables.$item-margin
min-height: variables.$item-height

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

line-height: 20px

&>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

// Loading Spinner Styles
Expand Down

0 comments on commit 4248a73

Please sign in to comment.