Skip to content

Improve compatibility/precision for badge styles#445

Merged
aduth merged 2 commits intomainfrom
aduth-badge-icon-margin
Jun 3, 2024
Merged

Improve compatibility/precision for badge styles#445
aduth merged 2 commits intomainfrom
aduth-badge-icon-margin

Conversation

@aduth
Copy link
Contributor

@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 aduth force-pushed the aduth-badge-icon-margin branch from 4a0875a to 042313f Compare June 3, 2024 13:47
@aduth
Copy link
Contributor 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
@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.

2 participants