diff --git a/lib/src/components/accordion/AccordionTrigger.tsx b/lib/src/components/accordion/AccordionTrigger.tsx index 8565bde4e..9ec4a6f54 100644 --- a/lib/src/components/accordion/AccordionTrigger.tsx +++ b/lib/src/components/accordion/AccordionTrigger.tsx @@ -29,11 +29,11 @@ const StyledTrigger = styled(Trigger, { cursor: 'pointer', bg: '$interactive2', color: '$interactiveForeground', - '&[data-disabled]': { + '&[disabled]': { opacity: 0.3, cursor: 'not-allowed' }, - '&:not([data-disabled])': { + '&:not([disabled])': { '&:active, &:hover, &:focus-visible': { bg: '$interactive3' }, diff --git a/lib/src/components/accordion/__snapshots__/Accordion.test.tsx.snap b/lib/src/components/accordion/__snapshots__/Accordion.test.tsx.snap index 7f5a2e18d..74f2fa9bf 100644 --- a/lib/src/components/accordion/__snapshots__/Accordion.test.tsx.snap +++ b/lib/src/components/accordion/__snapshots__/Accordion.test.tsx.snap @@ -338,7 +338,7 @@ exports[`Accordion component renders an accordion 1`] = ` transform: rotate(0deg); } - .c-cHXTzy { + .c-cdQaC { border: 0; padding-top: var(--space-3); padding-bottom: var(--space-3); @@ -353,29 +353,29 @@ exports[`Accordion component renders an accordion 1`] = ` color: var(--colors-interactiveForeground); } - .c-cHXTzy[data-disabled] { + .c-cdQaC[disabled] { opacity: 0.3; cursor: not-allowed; } - .c-cHXTzy:not([data-disabled]):active, - .c-cHXTzy:not([data-disabled]):hover, - .c-cHXTzy:not([data-disabled]):focus-visible { + .c-cdQaC:not([disabled]):active, + .c-cdQaC:not([disabled]):hover, + .c-cdQaC:not([disabled]):focus-visible { background: var(--colors-interactive3); } - .c-cHXTzy:not([data-disabled]):focus-visible { + .c-cdQaC:not([disabled]):focus-visible { outline: none; position: relative; z-index: 1; box-shadow: white 0px 0px 0px 2px, var(--colors-primary800) 0px 0px 0px 4px; } - .c-cHXTzy[data-state="open"] { + .c-cdQaC[data-state="open"] { border-radius: var(--radii-0) var(--radii-0) 0 0; } - .c-cHXTzy[data-state="closed"] { + .c-cdQaC[data-state="closed"] { border-radius: var(--radii-0); } @@ -437,7 +437,7 @@ exports[`Accordion component renders an accordion 1`] = ` aria-controls="radix-:r1:" aria-disabled="true" aria-expanded="true" - class="c-cHXTzy t-dVJiaJ t-hwCMvs" + class="c-cdQaC t-dVJiaJ t-hwCMvs" data-orientation="vertical" data-radix-collection-item="" data-state="open" @@ -477,7 +477,7 @@ exports[`Accordion component renders an accordion 1`] = `