Skip to content

Commit

Permalink
more
Browse files Browse the repository at this point in the history
  • Loading branch information
AlbertCarreras committed Jan 31, 2025
1 parent f4b6b79 commit fe948a2
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions packages/gestalt/src/Dropdown/OptionItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -156,14 +156,10 @@ const OptionItemWithForwardRef = forwardRef<HTMLElement | null | undefined, Prop
</Text>
)}
{badge && !disabled && (
<Box marginStart={2} marginTop={1}>
<Box marginStart={2} marginTop={isInVRExperiment ? undefined : 1}>
{/* Adds a pause for screen reader users between the text content */}
<Box display="visuallyHidden">{`, `}</Box>
<Badge
position={isInVRExperiment ? 'top' : undefined}
text={badge.text}
type={badge.type || 'info'}
/>
<Badge text={badge.text} type={badge.type || 'info'} />
</Box>
)}
</Fragment>
Expand Down

0 comments on commit fe948a2

Please sign in to comment.