Skip to content

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

Closed
@ghost

Description

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions