Skip to content

Conversation

mbostock
Copy link
Member

@mbostock mbostock commented Aug 7, 2024

Fixes #2124 by removing validation of the className mark option.

The reason we validate the className plot option is because we need to interpolate it into a stylesheet as a selector (prefixed with .). That’s not true of the mark-level className option, which is simply used to set the class attribute. Therefore for the latter we should allow any string, like we do for other attribute mark options such as ariaLabel and ariaDescription.

@mbostock mbostock requested a review from Fil August 7, 2024 12:22
@mbostock mbostock merged commit 1d01e25 into main Aug 7, 2024
1 check passed
@mbostock mbostock deleted the mbostock/lax-className branch August 7, 2024 12:58
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.

className mark option should allow multiple classes (separated by spaces)
2 participants