Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/deep-impalas-wave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@primer/react': patch
---

Change actionlist item inline description styling from flex to block to fix overflow
14 changes: 5 additions & 9 deletions packages/react/src/ActionList/ActionList.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -628,27 +628,23 @@ default block */
/* inline */
&:where([data-description-variant='inline']) {
position: relative;
display: block;
word-break: normal;
flex-direction: row;
align-items: baseline;
gap: var(--base-size-8);

& .ItemLabel {
display: inline;
word-break: normal;
}

&:has([data-truncate='true']) {
& .ItemLabel {
flex: 1 0 auto;
}
}

& .Description {
display: inline;
margin-left: var(--base-size-8);
/* adjust line-height for baseline alignment */

/* line-height: calc(var(--control-medium-lineBoxHeight) - var(--base-size-2)); */
/* stylelint-disable-next-line primer/typography */
line-height: 16px;
overflow-wrap: break-word;
}
}
}
Expand Down
Loading