Skip to content

Commit

Permalink
fix(textarea): change style to be like osds-input
Browse files Browse the repository at this point in the history
  • Loading branch information
skhamvon authored and dpellier committed Feb 15, 2024
1 parent cab347f commit 8bdd3a6
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 5 deletions.
4 changes: 2 additions & 2 deletions packages/common/theming/size/ods-theming-size.textarea.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
@return (
padding: var(--ods-size-textarea-#{$size-name}-padding),
border-radius: var(--ods-size-textarea-#{$size-name}-border-radius),
border-width: var(--ods-size-textarea-#{$size-name}-border-width),
);
}

/// @access private
@function ods-get-textarea-component-size-definition() {
@return (
md: ods-get-textarea-size-properties(md),
);
}

Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
color: map_get($colors, color);

&::placeholder {
color: map_get($colors, color);
opacity: 1;
color: ods-get-color-variable($intent-name: text, $hue: '500');
}

&:active,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

:host {
@include osds-textarea-on-main-element {
border-width: ods-get-size-property($size-properties, border-width);
border-radius: ods-get-size-property($size-properties, border-radius);
padding: ods-get-size-property($size-properties, padding);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@
}

:host textarea::placeholder {
font-style: italic;
$typography-properties: ods-get-typography-properties(body, '300');

line-height: ods-get-typography-property($typography-properties, line-height);
letter-spacing: ods-get-typography-property($typography-properties, letter-spacing);
font-family: ods-get-typography-property($typography-properties, font-family);
font-size: ods-get-typography-property($typography-properties, font-size);
font-weight: ods-get-typography-property($typography-properties, font-weight);
font-style: ods-get-typography-property($typography-properties, font-style);
}
}
3 changes: 2 additions & 1 deletion packages/themes/blue-jeans/src/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -442,8 +442,9 @@
),
$textarea: (
md: (
border-width: var(--ods-size-inset-01),
border-radius: var(--ods-size-border-radius-01),
padding: var(--ods-size-inset-04),
border-radius: var(--ods-size-03),
),
),
$tile: (
Expand Down

0 comments on commit 8bdd3a6

Please sign in to comment.