Skip to content

Commit

Permalink
update icons bg from PR review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
leagrdv committed Dec 17, 2024
1 parent f3857de commit 711498f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ export const Size: Story = {
const styleVariants = [
{ class: 'border rounded p-16', style: 'font-size: 4rem' },
{ class: 'border border-success rounded p-16 text-success', style: 'font-size: 4rem' },
{ class: 'my-icon rounded-circle p-16', style: 'font-size: 4rem' },
{ class: 'rounded-circle p-16', style: 'font-size: 4rem; background-color: #cce4ee' },
];

export const Style: Story = {
Expand Down Expand Up @@ -177,11 +177,7 @@ export const Flip: Story = {
],
};

const scaleVariants = [
{ class: 'my-icon', scale: 0.5 },
{ class: 'my-icon' },
{ class: 'my-icon', scale: 1.5 },
];
const scaleVariants = [{ scale: 0.5 }, {}, { scale: 1.5 }];

export const Scale: Story = {
parameters: {
Expand All @@ -192,7 +188,7 @@ export const Scale: Story = {
render: args => renderVariants(args, scaleVariants),
decorators: [
(story: StoryFn, context: StoryContext) =>
generateDecorators(story, context, 'd-flex flex-wrap gap-24'),
generateDecorators(story, context, 'd-flex flex-wrap gap-24 scale-container'),
],
};

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@use '@swisspost/design-system-styles/core' as post;

.my-icon {
.scale-container post-icon {
background-color: post.$info;
}

0 comments on commit 711498f

Please sign in to comment.