Skip to content

Bug: Divide Color page of the doc only shows gray for all divide borders #755

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

Closed
ghost opened this issue Feb 15, 2021 · 1 comment
Closed

Comments

@ghost
Copy link

ghost commented Feb 15, 2021

Divide Color page only shows gray for all the divide borders.

By looking at the source code I figured lines 26 & 27 of src/pages/docs/divide-color.mdx could be the problem.

By replacing --divide-opacity with --tw-divide-opacity fixes the bug, like below

borderColor: Array.isArray(css['border-color'])
-               ? css['border-color'][0].replace('var(--divide-opacity)', '1')
-               : css['border-color'].replace('var(--divide-opacity)', '1'),
+               ? css['border-color'][0].replace('var(--tw-divide-opacity)', '1')
+               : css['border-color'].replace('var(--tw-divide-opacity)', '1'),

Can send a Pull Request if you guys accept.

@adamwathan
Copy link
Member

Ah good catch yeah would love a PR!

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

No branches or pull requests

1 participant