Skip to content

Commit

Permalink
fix: 馃 sd-accordion focus state (#338)
Browse files Browse the repository at this point in the history
## Description:

Fixed styles in sd-accordion to only show focus border during keyboard
navigation / tabbed browsing / sr usage.

Changed the status of sd-accordion-group from experimental to stable.

Co-authored-by: Azra Efendic <azra.efendic@azravi.localdomain>
  • Loading branch information
azraefendic and Azra Efendic committed Aug 17, 2023
1 parent 6ec3a8c commit e1d986e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import SolidElement from '../../internal/solid-element';
/**
* @summary Short summary of the component's intended use.
* @documentation https://solid.union-investment.com/[storybook-link]/accordion-group
* @status experimental
* @status stable
* @since 1.1
*
* @dependency sd-accordion
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/components/accordion/accordion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ export default class SdAccordion extends SolidElement {
part="header"
id="header"
class=${cx(
'flex text-base gap-4 font-bold items-center cursor-pointer select-none px-4 py-3 focus:outline focus:outline-primary focus:outline-2 focus:outline-offset-2 focus-visible:focus',
'flex text-base gap-4 font-bold items-center cursor-pointer select-none px-4 py-3 focus-visible:focus-outline',
this.open ? 'bg-white text-accent hover:bg-neutral-200' : 'text-primary bg-neutral-100 hover:bg-neutral-200'
)}
role="button"
Expand Down

0 comments on commit e1d986e

Please sign in to comment.