Skip to content

Conversation

@ajotka
Copy link
Contributor

@ajotka ajotka commented Oct 9, 2024

Motivation for the change, related issues

I found "undefined" as a class name in the rendered DOM code.
image

Implementation details

Remove potentially empty prop from string chain to classNames() method.

Testing Instructions (or ideally a Blueprint)

Just open playground. It's on the main page as a wrapper.

Ps. Sorry for the small stuff. I'm trying to find my way around the code :)

@adamziel
Copy link
Collaborator

adamziel commented Oct 9, 2024

Ps. Sorry for the small stuff.

Thank you for the small stuff! :)

I'm trying to find my way around the code :)

Feel free to reach out on #meta-playground slack channel and start issues and discussions about things that aren't clear – it would all be helpful feedback on how can we improve the clarity :)

@adamziel adamziel changed the title fix "undefined" as className [Website] Fix "undefined" as className Oct 9, 2024
@adamziel adamziel merged commit e969da7 into WordPress:trunk Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

No open projects
Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants