Skip to content

Commit

Permalink
feat(text-area): support contextual layout tokens (density) (#14697)
Browse files Browse the repository at this point in the history
  • Loading branch information
janhassel authored Sep 27, 2023
1 parent c05e74b commit 9c53ea5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/styles/scss/components/text-area/_text-area.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
@use '../../utilities/focus-outline' as *;
@use '../../utilities/placeholder-colors' as *;
@use '../../utilities/skeleton' as *;
@use '../../utilities/layout';

/// Text area styles
/// @access public
Expand All @@ -27,7 +28,7 @@
@include type-style('body-01');
@include focus-outline('reset');

padding: convert.to-rem(11px) $spacing-05;
padding: convert.to-rem(11px) layout.density('padding-inline');
border: none;
background-color: $field;
block-size: 100%;
Expand Down Expand Up @@ -62,6 +63,8 @@
}

.#{$prefix}--text-area__wrapper {
@include layout.use('density', $default: 'normal');

position: relative;
display: flex;
inline-size: 100%;
Expand All @@ -71,7 +74,7 @@
position: absolute;
fill: $support-error;
inset-block-start: $spacing-04;
inset-inline-end: $spacing-05;
inset-inline-end: layout.density('padding-inline');
}

.#{$prefix}--text-area__invalid-icon--warning {
Expand Down

0 comments on commit 9c53ea5

Please sign in to comment.