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

Fix lints in button component #113

Merged
merged 1 commit into from
Nov 9, 2023
Merged

Fix lints in button component #113

merged 1 commit into from
Nov 9, 2023

Conversation

maxatdetroit
Copy link
Member

Part of CityofDetroit/detroitmi#1099

  • Resolves ES lints from the <cod-button/> component

Note: All the places where we are going from eqeq (==) to eqeqeq (===) are checking HTML attribute values using getAttribute. getAttribute always returns null or empty string ("") if the value is not set. With this in mind, I went ahead and updated the places we use eqeq (==) to use either eqeqeq (===) comparison to string (since attributes are always string), or truthiness check.

Testing

Test all the different stories and properties of the button component in storybook.

Screenshot 2023-10-31 at 12 09 04 PM
Screenshot 2023-10-31 at 12 08 44 PM

@maxatdetroit maxatdetroit self-assigned this Oct 31, 2023
@maxatdetroit maxatdetroit force-pushed the fix.detroitmi1099.button branch from 8b4a89e to 603f546 Compare October 31, 2023 16:54
@maxatdetroit maxatdetroit force-pushed the fix.detroitmi1099.button branch from 603f546 to af5f84e Compare October 31, 2023 16:55
@jedgar1mx jedgar1mx merged commit aaaa4ac into dev Nov 9, 2023
3 checks passed
@jedgar1mx jedgar1mx deleted the fix.detroitmi1099.button branch November 9, 2023 16:40
@maxatdetroit maxatdetroit linked an issue Nov 27, 2023 that may be closed by this pull request
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.

Conform UXDS library to Prettier & ESLint standards
2 participants