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

chore(en): describe more accepted class:list value kinds #3829

Merged

Conversation

duanwilliam
Copy link
Contributor

What kind of changes does this PR include?

  • (very) minor content fixes (broken links, typos, etc.)

Description

Currently, the documentation on class:list doesn't mention anything about how it handles false values.
This was an issue when it stringified false, diverging in behavior from the clsx package the documentation references (withastro/astro#3920);
while that since has since been fixed (withastro/astro#3922), there's still no mention of how it handles such values in the documentation. This PR adds a note of how it handles false (as well as null) in the docs, as observed in the source code at https://github.com/withastro/astro/blob/main/packages/astro/src/runtime/server/util.ts#L19.

@netlify
Copy link

netlify bot commented Jul 26, 2023

Deploy Preview for astro-docs-2 ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 4665fbd
🔍 Latest deploy log https://app.netlify.com/sites/astro-docs-2/deploys/64c0bee6ab784f0008a6ab55
😎 Deploy Preview https://deploy-preview-3829--astro-docs-2.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Member

@sarah11918 sarah11918 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love this, @duanwilliam! Thanks so much for this addition, and welcome to Team Docs! 🥳

@sarah11918 sarah11918 added the improve or update documentation Enhance / update existing documentation (e.g. add example, improve description, update for changes) label Jul 26, 2023
@sarah11918 sarah11918 merged commit 5dfcfde into withastro:main Jul 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improve or update documentation Enhance / update existing documentation (e.g. add example, improve description, update for changes)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants