Merged in fix/use-rac-label-select (pull request #2018)
fix: use proper label component from rac for consistency Approved-by: Chuma Mcphoy (We Ahead)
This commit is contained in:
@@ -5,6 +5,7 @@ import {
|
|||||||
Key,
|
Key,
|
||||||
ListBox,
|
ListBox,
|
||||||
Popover,
|
Popover,
|
||||||
|
Label,
|
||||||
} from 'react-aria-components'
|
} from 'react-aria-components'
|
||||||
import { useState } from 'react'
|
import { useState } from 'react'
|
||||||
|
|
||||||
@@ -55,7 +56,7 @@ export function SelectFilter({
|
|||||||
defaultSelectedKey={defaultSelectedKey}
|
defaultSelectedKey={defaultSelectedKey}
|
||||||
{...props}
|
{...props}
|
||||||
>
|
>
|
||||||
<label className={styles.inner}>
|
<Label className={styles.inner}>
|
||||||
{icon ? (
|
{icon ? (
|
||||||
<MaterialIcon
|
<MaterialIcon
|
||||||
icon={icon}
|
icon={icon}
|
||||||
@@ -86,7 +87,7 @@ export function SelectFilter({
|
|||||||
className={styles.chevron}
|
className={styles.chevron}
|
||||||
/>
|
/>
|
||||||
</Button>
|
</Button>
|
||||||
</label>
|
</Label>
|
||||||
|
|
||||||
<Popover
|
<Popover
|
||||||
className={styles.popover}
|
className={styles.popover}
|
||||||
|
|||||||
Reference in New Issue
Block a user