Skip to content

Commit

Permalink
🐛 - fix: fix a bug that icons to have incorrect margins if nested in …
Browse files Browse the repository at this point in the history
…an AttirbuteTable component
  • Loading branch information
svenvandescheur committed Oct 18, 2024
1 parent bd510ba commit 4917066
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion src/components/data/attributetable/attributetable.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,11 @@
&__cell--key {
font-weight: var(--typography-font-weight-bold);
}
&__cell--key > .mykn-icon:last-child {
margin-inline-start: var(--spacing-h);
}

&__cell .mykn-icon {
&__cell > .mykn-icon {
margin-inline-end: var(--spacing-h);
}
}
4 changes: 2 additions & 2 deletions src/components/data/attributetable/attributetable.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ export const LabeledAttributeTableComponentWithNodes: Story = {
},
labelWithIcon: {
label: (
<div>
<>
A label with icon <Outline.AcademicCapIcon />
</div>
</>
),
value: "Some value",
},
Expand Down

0 comments on commit 4917066

Please sign in to comment.