Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
3fe9481
fix weight
langermank Jul 1, 2025
8634240
Merge branch 'main' into al-desc-label-bold
langermank Jul 2, 2025
2f267e7
test(vrt): update snapshots
langermank Jul 2, 2025
2482f24
Merge branch 'main' into al-desc-label-bold
langermank Jul 2, 2025
a9a07f0
reset
langermank Jul 2, 2025
13c16c4
Create slow-gorillas-itch.md
langermank Jul 2, 2025
20de3f3
test(vrt): update snapshots
langermank Jul 2, 2025
44890f3
tooltips
langermank Jul 2, 2025
f69649e
Merge branch 'al-desc-label-bold' of https://github.com/primer/react …
langermank Jul 2, 2025
6722b13
test(vrt): update snapshots
langermank Jul 2, 2025
9c77c78
Merge branch 'main' into al-desc-label-bold
langermank Jul 7, 2025
043cb11
reset
langermank Jul 7, 2025
5c936f7
snaps
langermank Jul 7, 2025
ee18525
snip snap
langermank Jul 7, 2025
074298e
test(vrt): update snapshots
langermank Jul 8, 2025
e8482ed
reset
langermank Jul 8, 2025
9834b02
Merge branch 'main' into al-desc-label-bold
primer[bot] Jul 10, 2025
e03169a
Merge branch 'main' into al-desc-label-bold
langermank Jul 11, 2025
68e1d74
test(vrt): update snapshots
langermank Jul 11, 2025
98f1d90
reset snap
langermank Jul 14, 2025
60dba1e
Merge branch 'main' into al-desc-label-bold
langermank Jul 14, 2025
1f7b9f7
Merge branch 'main' into al-desc-label-bold
langermank Jul 16, 2025
8686cdf
Merge branch 'main' into al-desc-label-bold
langermank Jul 22, 2025
09904f5
Merge branch 'main' into al-desc-label-bold
langermank Jul 22, 2025
79a6aaa
Merge branch 'main' into al-desc-label-bold
langermank Jul 23, 2025
9049797
Merge branch 'al-desc-label-bold' of https://github.com/primer/react …
langermank Jul 23, 2025
2bb796d
Merge branch 'main' into al-desc-label-bold
langermank Jul 23, 2025
d8ca9d3
test(vrt): update snapshots
langermank Jul 23, 2025
4c1afd9
please please please
langermank Jul 23, 2025
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/slow-gorillas-itch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/react": patch
---

Adjust ActionList label font-weight if a list has both items with descriptions AND without
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions e2e/components/TooltipV2.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ const stories = [
{
title: 'Default',
id: 'components-tooltipv2--default',
disableAnimations: true,
Copy link

Copilot AI Jul 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The TooltipV2 test changes appear unrelated to the ActionList font-weight adjustment described in the PR. These animation-related changes should be in a separate commit or PR to maintain clear change separation.

Copilot uses AI. Check for mistakes.
},
{
title: 'Anchor Has Margin',
id: 'components-tooltipv2-features--anchor-has-margin',
disableAnimations: true,
},
{
title: 'Calculated Direction',
Expand All @@ -18,14 +20,17 @@ const stories = [
{
title: 'Icon Button With Description',
id: 'components-tooltipv2-features--icon-button-with-description',
disableAnimations: true,
},
{
title: 'Label Type',
id: 'components-tooltipv2-features--label-type',
disableAnimations: true,
},
{
title: 'Dev SX Props',
id: 'components-tooltipv2-dev--default',
disableAnimations: true,
},
] as const

Expand Down
7 changes: 7 additions & 0 deletions packages/react/src/ActionList/ActionList.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,13 @@
& .Divider:first-child {
display: none;
}

/* if a list has a mix of items with and without descriptions, reset the label font-weight to normal */
&:has([data-has-description='true']):has([data-has-description='false']) {
& .ItemLabel {
font-weight: var(--base-text-weight-normal);
}
}
}

/* ActionListItem is a li that handles visual state, while ActionListItemContent controls actual state via button or link */
Expand Down
1 change: 1 addition & 0 deletions packages/react/src/ActionList/Item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ export const Item = React.forwardRef<HTMLLIElement, ActionListItemProps>(
data-active={active ? true : undefined}
data-inactive={inactiveText ? true : undefined}
data-has-subitem={slots.subItem ? true : undefined}
data-has-description={slots.description ? true : false}
className={clsx(classes.ActionListItem, className)}
>
<ItemWrapper {...wrapperProps} className={classes.ActionListContent}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ exports[`NavList > renders a simple list 1`] = `
<li
class="prc-ActionList-ActionListItem-jXerx"
data-active="true"
data-has-description="false"
>
<a
aria-current="page"
Expand Down Expand Up @@ -39,6 +40,7 @@ exports[`NavList > renders a simple list 1`] = `
</li>
<li
class="prc-ActionList-ActionListItem-jXerx"
data-has-description="false"
>
<a
aria-labelledby=":r2:--label "
Expand Down Expand Up @@ -66,6 +68,7 @@ exports[`NavList > renders a simple list 1`] = `
</li>
<li
class="prc-ActionList-ActionListItem-jXerx"
data-has-description="false"
>
<a
aria-labelledby=":r3:--label "
Expand Down Expand Up @@ -132,6 +135,7 @@ exports[`NavList > renders with groups 1`] = `
<li
class="prc-ActionList-ActionListItem-jXerx"
data-active="true"
data-has-description="false"
>
<a
aria-current="page"
Expand Down Expand Up @@ -187,6 +191,7 @@ exports[`NavList > renders with groups 1`] = `
>
<li
class="prc-ActionList-ActionListItem-jXerx"
data-has-description="false"
>
<a
aria-labelledby=":r8:--label "
Expand Down Expand Up @@ -229,6 +234,7 @@ exports[`NavList.Item with NavList.SubNav > does not have active styles if SubNa
>
<li
class="prc-ActionList-ActionListItem-jXerx"
data-has-description="false"
data-has-subitem="true"
>
<button
Expand Down Expand Up @@ -285,6 +291,7 @@ exports[`NavList.Item with NavList.SubNav > does not have active styles if SubNa
<li
class="prc-ActionList-ActionListItem-jXerx"
data-active="true"
data-has-description="false"
>
<a
aria-current="page"
Expand Down Expand Up @@ -329,6 +336,7 @@ exports[`NavList.Item with NavList.SubNav > has active styles if SubNav contains
<li
class="prc-ActionList-ActionListItem-jXerx"
data-active="true"
data-has-description="false"
data-has-subitem="true"
>
<button
Expand Down Expand Up @@ -385,6 +393,7 @@ exports[`NavList.Item with NavList.SubNav > has active styles if SubNav contains
<li
class="prc-ActionList-ActionListItem-jXerx"
data-active="true"
data-has-description="false"
>
<a
aria-current="page"
Expand Down
Loading