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

lax className #2126

Merged
merged 1 commit into from
Aug 7, 2024
Merged

lax className #2126

merged 1 commit into from
Aug 7, 2024

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