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: adding and removing css classes that contained spaces #6455

Merged
merged 4 commits into from
Sep 28, 2022

Conversation

BeksOmega
Copy link
Collaborator

The basics

  • I branched from develop
  • My pull request is against develop
  • My code follows the style guide
  • I ran npm run format and npm run lint

The details

Resolves

Fixes #6454

Proposed Changes

Adds proper splitting to addClass and removeClass. Changes everything back to using addClass and removeClass

Behavior Before Change

We had things in core that implicitly supported applying multiple classes separated by spaces, which recently broke.

Behavior After Change

Now it is working once again.

Reason for Changes

Regressions are sad.

Test Coverage

Added a test specifically for applying multiple classes to an icon, cuz it was easy. But generally I'm just trusting that my fixes are correct.

Documentation

N/A

Additional Information

N/A

@BeksOmega BeksOmega requested a review from a team as a code owner September 28, 2022 21:36
@BeksOmega BeksOmega requested a review from maribethb September 28, 2022 21:36
@rachel-fenichel
Copy link
Collaborator

Oh :/

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.

3 participants