Skip to content

Commit

Permalink
fix(helper-line): when hidden, it should not have any height
Browse files Browse the repository at this point in the history
  • Loading branch information
Kiarokh committed Nov 3, 2023
1 parent c7dbfd7 commit b227138
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/components/helper-line/helper-line.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
box-sizing: border-box;
display: grid;

padding: 0.125rem 1rem 0 1rem;
min-width: 0; // prevents overflowing, if component is placed in flex containers

font-family: Roboto, sans-serif;
Expand All @@ -23,6 +22,7 @@ div {
justify-content: space-between;
gap: 0.75rem;
overflow: hidden;
padding: 0 1rem;
}

:host(limel-helper-line.invalid) {
Expand All @@ -36,6 +36,11 @@ div {
margin-left: auto;
}

.helper-text,
.counter {
padding-top: 0.125rem;
}

// This animates height of the helper line, from `0` to `auto`.
// To get this animation effect, the consumer component should
// add `hide` classed accordingly.
Expand Down

0 comments on commit b227138

Please sign in to comment.