Skip to content

Commit

Permalink
chore: remove lead small paragraph (#2301)
Browse files Browse the repository at this point in the history
removed deprecated code for html paragraph
  • Loading branch information
scar055 authored Oct 6, 2024
1 parent 8edf86e commit fe20468
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 38 deletions.
8 changes: 8 additions & 0 deletions .changeset/purple-coins-change.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
"@utrecht/paragraph-css": major
"@utrecht/component-library-css": major
---

Breaking change: Removed "lead" and "small" styling from HTML paragraph component. If "lead" or "small" are now used, there will be no styling.

Removed "lead" and "small" stories from html paragraph.
12 changes: 0 additions & 12 deletions components/paragraph/src/html/_mixin.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,7 @@
@include utrecht-paragraph;
}

p.lead {
@include utrecht-paragraph--lead;
}

* ~ p {
@include utrecht-paragraph--distanced;
}

p:has(> small:only-child) {
@include utrecht-paragraph--small;
}

p > small:only-child {
@include utrecht-paragraph__html-small;
}
}
26 changes: 0 additions & 26 deletions packages/storybook-html/src/Paragraph.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,32 +81,6 @@ export const Default: Story = {
},
};

export const Lead: Story = {
args: {
children:
'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.',
lead: true,
},
parameters: {
status: {
type: 'WORK IN PROGRESS',
},
},
};

export const Small: Story = {
args: {
children:
'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.',
small: true,
},
parameters: {
status: {
type: 'WORK IN PROGRESS',
},
},
};

export const Hidden: Story = {
args: {
...Default.args,
Expand Down

0 comments on commit fe20468

Please sign in to comment.