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

Deny tag argument for ActionList headings #1871

Merged
merged 2 commits into from
Mar 8, 2023

Conversation

camertron
Copy link
Contributor

Description

I ran into a case in dotcom today where a tag: "h2" option was being passed to an ActionList heading, which caused problems. This was easily fixed by passing heading_level: 2 instead, but the component should disallow passing tag:.

Integration

Does this change require any updates to code in production?

No, all instances of this should be fixed by the time this PR ships.

Merge checklist

  • Added/updated tests
    - [ ] Added/updated documentation
    - [ ] Added/updated previews

@changeset-bot
Copy link

changeset-bot bot commented Mar 7, 2023

🦋 Changeset detected

Latest commit: 48de187

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 7, 2023
@camertron camertron merged commit 6b1170a into main Mar 8, 2023
@camertron camertron deleted the action_list_heading_deny_tag branch March 8, 2023 17:50
@primer-css primer-css mentioned this pull request Mar 8, 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