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

Use system arguments instead of utility classes for NavList's "show more" item #1845

Merged
merged 4 commits into from
Feb 27, 2023

Conversation

camertron
Copy link
Contributor

@camertron camertron commented Feb 27, 2023

Description

NavList features a special "show more" item for lazy loading additional list items. Unfortunately it uses a Primer utility class instead of the corresponding system argument, and is causing an error in dotcom's Lookbook.

This would have been caught by our test suite except that we have raise_on_invalid_options set to false in the test environment 🤦

Closes #1843.

Integration

Does this change require any updates to code in production?

No. Should be backwards-compatible.

Merge checklist

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

@changeset-bot
Copy link

changeset-bot bot commented Feb 27, 2023

🦋 Changeset detected

Latest commit: 3cb8ccd

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

@camertron camertron temporarily deployed to preview February 27, 2023 22:28 — with GitHub Actions Inactive
@github-actions github-actions bot added the ruby Pull requests that update Ruby code label Feb 27, 2023
@camertron camertron temporarily deployed to github-pages February 27, 2023 22:32 — with GitHub Actions Inactive
Copy link
Member

@jonrohan jonrohan left a comment

Choose a reason for hiding this comment

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

Thanks for the fix!

@camertron camertron merged commit 98792bd into main Feb 27, 2023
@camertron camertron deleted the fix_nav_list_show_more_classes branch February 27, 2023 23:12
@primer-css primer-css mentioned this pull request Feb 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ruby Pull requests that update Ruby code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NavList::Section show_more_item slot uses Primer CSS class
2 participants