Skip to content

Commit

Permalink
fix(Textarea): ensure correct height based on rows for Firefox browser (
Browse files Browse the repository at this point in the history
  • Loading branch information
tujoworker authored Jan 10, 2024
1 parent 8a547ae commit 75f754e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,11 @@ html:not([data-visual-test]) .dnb-textarea__textarea {
background-color: var(--scrollbar-thumb-hover-color, #666);
}
}
@-moz-document url-prefix() {
.dnb-textarea__textarea {
overflow-x: clip;
}
}
.dnb-textarea__input:autofill {
box-shadow: 0 0 0 var(--border-width) var(--border-color), 0 0 0 10em var(--textarea-background-color) inset;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@
@include textareaStyleCommon();

@include scrollY(auto);

@include IS_FF() {
overflow-x: clip;
}
}

// change the autocomplete appearance once filled out
Expand Down
3 changes: 1 addition & 2 deletions packages/dnb-eufemia/src/style/core/utilities.scss
Original file line number Diff line number Diff line change
Expand Up @@ -248,8 +248,7 @@

// Firefox fix
@mixin IS_FF() {
@supports (-moz-appearance: meterbar) and
(background-blend-mode: difference, normal) {
@-moz-document url-prefix() {
@content;
}
}
Expand Down

0 comments on commit 75f754e

Please sign in to comment.