diff --git a/lib/src/components/accordion/AccordionTrigger.tsx b/lib/src/components/accordion/AccordionTrigger.tsx index 4049925bd..0269d8308 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 2a38d594d..0a0d91930 100644 --- a/lib/src/components/accordion/__snapshots__/Accordion.test.tsx.snap +++ b/lib/src/components/accordion/__snapshots__/Accordion.test.tsx.snap @@ -302,7 +302,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); @@ -317,29 +317,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); } @@ -399,7 +399,7 @@ exports[`Accordion component renders an accordion 1`] = ` aria-controls="radix-0" aria-disabled="true" aria-expanded="true" - class="c-cHXTzy t-dVJiaJ t-hwCMvs" + class="c-cdQaC t-dVJiaJ t-hwCMvs" data-radix-collection-item="" data-state="open" id="radix-1" @@ -435,7 +435,7 @@ exports[`Accordion component renders an accordion 1`] = `