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

DSD-1726 & DSD-1765: TagSet style updates #1575

Merged
merged 11 commits into from
Apr 22, 2024

Conversation

bigfishdesign13
Copy link
Collaborator

@bigfishdesign13 bigfishdesign13 commented Apr 12, 2024

Fixes JIRA ticket DSD-1726 & DSD-1765

This PR does the following:

  • Updates the styles for the UI colors, text treatment and Clear all button in the TagSet component.
  • Updates the component category for the TagSet component to "Content Display".

How has this been tested?

  • local Storybook

Accessibility concerns or updates

  • n/a

Checklist:

  • I have updated the Storybook documentation accordingly.
  • I have added relevant accessibility documentation for this pull request.
  • All new and existing tests passed.

Front End Review:

  • Review the Vercel preview deployment once it is ready.

Copy link

vercel bot commented Apr 12, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
nypl-design-system ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 22, 2024 8:42pm

@bigfishdesign13 bigfishdesign13 added the Needs Review Pull requests that are ready for peer review. label Apr 12, 2024
Comment on lines 87 to 89
textDecorationStyle: "dotted",
textDecorationThickness: "1px",
textUnderlineOffset: "2px",
Copy link
Member

@EdwinGuzman EdwinGuzman Apr 15, 2024

Choose a reason for hiding this comment

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

These are the same base styles for the Link component. Any way we can extract those styles out and reuse an object for both?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, and I think I've used this in other spots as well. I've been thinking about making it a reusable snippet, but I just haven't gopne through with it...yet. Let me see what I can do.

type: "Update",
affects: ["Documentation", "Styles"],
notes: [
"Updated the styles for the UI colors, text treatment and `Clear all` button.",
Copy link
Member

Choose a reason for hiding this comment

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

Just personal but how do you feel about using the oxford comma here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I am recent convert to using the Oxford comma. I am trying to use it more and more, but I missed this one. :) Admittedly, however, it does still bother me in certain situations.

Copy link
Member

@EdwinGuzman EdwinGuzman left a comment

Choose a reason for hiding this comment

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

Looks good. When I first looked at the explore TagSet, it appeared as if there would be color contrast issues but that's just me.

@EdwinGuzman
Copy link
Member

Added comments but not blockers.

@bigfishdesign13
Copy link
Collaborator Author

@EdwinGuzman I know you arleady approved, but please take a look at the last round of changes that I pushed. Thanks.

@bigfishdesign13 bigfishdesign13 added the x2 This PR needs at least two approvals. label Apr 16, 2024
});

it("returns 'clearFilters' when the 'Clear Filters' button is clicked", () => {
it("returns 'clearFilters' when the 'Clear filters' button is clicked", () => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nit: is 'clearFilters' the right word here? Is this basically testing whether the correct tagSet is passed to the onClick function when 'Clear filters' is clicked? If so, maybe this would be more accurate?

"returns the appropriate tag setwhen the 'Clear filters' button is clicked"

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good catch. I made an adjustment.

@bigfishdesign13 bigfishdesign13 added Ship It Pull requests that have been reviewed and approved. and removed Needs Review Pull requests that are ready for peer review. x2 This PR needs at least two approvals. labels Apr 22, 2024
@bigfishdesign13 bigfishdesign13 merged commit 7bd7bac into development Apr 22, 2024
5 checks passed
@bigfishdesign13 bigfishdesign13 deleted the DSD-1726-1765/tagset-style-updates branch April 22, 2024 20:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ship It Pull requests that have been reviewed and approved.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants