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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve compatibility/precision for badge styles #445

Merged
merged 2 commits into from
Jun 3, 2024

Conversation

aduth
Copy link
Member

@aduth aduth commented May 7, 2024

馃洜 Summary of changes

Iterates on styles introduced in #442 targeting the badge icon.

The IdP has a novel implementation of icon component which does not render markup as an <svg /> element, but does implement the equivalent as with the usa-icon class. Since it would be preferable (more precise) to implement the class selector vs. an element selector, this improves compatibility as well as improving the general implementation.

As part of the changes here, I dropped the selector which was deprecated as part of the work in #442, with the expectation this can be included in the next major release.

A patch release is not planned, and a temporary workaround will be added to the IdP instead.

馃摐 Testing Plan

Repeat testing plan from #442.

馃憖 Screenshots

There is not expected to be any visual impact of these changes, to be validated by the visual regression specs.

@aduth aduth added the breaking change Backwards-incompatible change to be included in a major version release label May 7, 2024
@aduth
Copy link
Member Author

aduth commented Jun 3, 2024

I've been sitting on this in case I wanted to ship a minor release before the next major release, since it included a breaking change. Instead, I'm just going to keep the deprecation for now and address the specific fix, so it's not a breaking change.

I'll create a separate pull request closer to the next major release with removals for those deprecations.

@aduth aduth removed the breaking change Backwards-incompatible change to be included in a major version release label Jun 3, 2024
@aduth aduth merged commit e7da526 into main Jun 3, 2024
4 checks passed
@aduth aduth deleted the aduth-badge-icon-margin branch June 3, 2024 13:52
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.

None yet

2 participants