Skip to content

Commit

Permalink
style(textarea): use new field-sizing: content
Browse files Browse the repository at this point in the history
  • Loading branch information
Barsnes committed Sep 19, 2024
1 parent 8c3b10c commit df299c6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/css/textarea.css
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
resize: vertical;
background: var(--ds-color-neutral-background-default);
color: var(--ds-color-neutral-text-default);
field-sizing: content;
}

.ds-textarea--sm .ds-textarea__input {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ type Story = StoryObj<typeof Textarea>;
export default {
title: 'Komponenter/Textarea',
component: Textarea,
decorators: [
(Story: StoryFn) => (
<div style={{ width: '20rem' }}>
<Story />
</div>
),
],
} as Meta;

export const Preview: Story = {
Expand Down

0 comments on commit df299c6

Please sign in to comment.