girouette icon indicating copy to clipboard operation
girouette copied to clipboard

tailwind ring styles seems to be broken

Open Wanderwichtl opened this issue 3 years ago • 1 comments

Hello,

I am having some problems with the tailwind ring styles. The created styles result in the browser to box-shadow: none, since they are somehow invalid.
With the classes :ring-1 :ring-white that results in:

box-shadow: var(--gi-ring-inset) 0 0 0 calc(1px + var(--gi-ring-offset-width)) var(--gi-ring-color);
--gi-ring-color: rgba(255,255,255,var(--gi-ring-opacity));

I tried to overwrite the rule, but still could not get it up and running. Has someone an idea of how to solve this?

I would be glad for any help or advice Alex

Wanderwichtl avatar Nov 14 '22 11:11 Wanderwichtl

I can reproduce the bug, it comes from the documentation at https://tailwindcss.com/docs/ring-width being wrong.

When I inspect that page with the browser's devtool, I see a different definition for ring-2 for example. image

I will try to find the time to fix it this weekend.

green-coder avatar Nov 15 '22 06:11 green-coder