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

Enhancement: [dev-8903] dropdown styling #1555

Draft
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

joshlacey
Copy link
Collaborator

[Replace With Ticket Number]

Testing Steps

Self Review

  • I have added testing steps for reviewers
  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings
  • New and existing unit tests are passing

Screenshots (if applicable)

Additional Notes

>
<Icon display={expanded ? 'caretDown' : 'caretUp'} style={{ cursor: 'pointer' }} />
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm assuming they don't want the caretUp here anymore for ux reasons.

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 that was as per the prototype.

@@ -88,15 +88,24 @@ type IconProps = {
/* Returns icon data as plain svg */
base?: boolean
/* Sets alt text for the icon */
alt: string
alt?: string
Copy link
Collaborator

Choose a reason for hiding this comment

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

We might want to keep this requirement for 508.

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 think having a different description of a checkmark throughout the app might be worse than defaulting to checkmark. I could create a new lookup with default names for each of the icons? so it doesn't end up as 'caretUp'.

const defaultNameLookup = { caretUp: 'caret up'}

<IconObj title={ alt || defaultNameLookup[display] } />

if you think this is necessary. I just kept seeing a lot of places where the alt wasn't given and we had typescript errors.

@joshlacey joshlacey force-pushed the enhancement/dev-8903-dropdown-styling branch from cdd7d8c to 4956282 Compare October 17, 2024 21:26
@joshlacey joshlacey added this to the 4.24.11 milestone Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants