braid-design-system@28.3.0
Minor Changes
-
Add Tabs component (#666)
Follows the WAI Aria Tabs Pattern.
EXAMPLE USAGE:
<TabsProvider id="id"> <Stack space="medium"> <Tabs label="Label"> <Tab>The first tab</Tab> <Tab>The second tab</Tab> <Tab badge={<Badge tone="positive">New</Badge>}>The third tab</Tab> </Tabs> <TabPanels> <TabPanel>...</TabPanel> <TabPanel>...</TabPanel> <TabPanel>...</TabPanel> </TabPanels> </Stack> </TabsProvider>
Patch Changes
-
Autosuggest: Fix suggestion double tap bug on iOS (#668)
Tapping a suggestion on iOS triggers the hover state rather than a selection, forcing users to tap a second time to select the suggestion.
This is due to the way that iOS simulates mouse events in a touch environment. If the document is updated during a
mouseover,mouseenterormousemoveevent, the subsequentclickevent is never fired. While it may seem counterintuitive, this ensures that touch users are able to see hover effects that make changes to the page.To fix this, we now trigger our suggestion hover logic on
touchstartso that the document doesn't change during mouse events, which then allows theclickevent to fire uninterrupted.