Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Action list allow content label #1887

Merged
merged 3 commits into from
Mar 17, 2023
Merged

Conversation

camertron
Copy link
Contributor

@camertron camertron commented Mar 16, 2023

Description

I'm currently working on updating ActionMenu (an experimental component in dotcom) to use the ActionList component instead of HTML + action list classes. So what's changed?

  1. Allow content to be used as the label. In my efforts to improve the accessibility of ActionList (and NavList), I recently added a required label: argument. Labels used to be specified via content. Unfortunately numerous places in dotcom specify non-trivial content in ActionMenu items, meaning ActionList items have to support content again too.
  2. Allow dividers to contain content. In the original ActionList designs, dividers can either be horizontal lines or text. This PR makes the latter possible.

Integration

Does this change require any updates to code in production?

No

@changeset-bot
Copy link

changeset-bot bot commented Mar 16, 2023

🦋 Changeset detected

Latest commit: 38ac3b2

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@primer/view-components Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions bot added the ruby Pull requests that update Ruby code label Mar 16, 2023
@camertron camertron merged commit 9cc2f5b into main Mar 17, 2023
@camertron camertron deleted the action_list_allow_content_label branch March 17, 2023 05:20
@primer-css primer-css mentioned this pull request Mar 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch release ruby Pull requests that update Ruby code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants