feat: Invert scroll arrow default in RadioButtonSelect (#4006)
This commit is contained in:
parent
26a79fec25
commit
09a3b7d5e1
|
@ -203,6 +203,7 @@ export function ThemeDialog({
|
||||||
onHighlight={onHighlight}
|
onHighlight={onHighlight}
|
||||||
isFocused={currenFocusedSection === 'theme'}
|
isFocused={currenFocusedSection === 'theme'}
|
||||||
maxItemsToShow={8}
|
maxItemsToShow={8}
|
||||||
|
showScrollArrows={true}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
{/* Scope Selection */}
|
{/* Scope Selection */}
|
||||||
|
@ -217,7 +218,6 @@ export function ThemeDialog({
|
||||||
onSelect={handleScopeSelect}
|
onSelect={handleScopeSelect}
|
||||||
onHighlight={handleScopeHighlight}
|
onHighlight={handleScopeHighlight}
|
||||||
isFocused={currenFocusedSection === 'scope'}
|
isFocused={currenFocusedSection === 'scope'}
|
||||||
showScrollArrows={false}
|
|
||||||
/>
|
/>
|
||||||
</Box>
|
</Box>
|
||||||
)}
|
)}
|
||||||
|
|
|
@ -53,7 +53,7 @@ export function RadioButtonSelect<T>({
|
||||||
onSelect,
|
onSelect,
|
||||||
onHighlight,
|
onHighlight,
|
||||||
isFocused,
|
isFocused,
|
||||||
showScrollArrows = true,
|
showScrollArrows = false,
|
||||||
maxItemsToShow = 10,
|
maxItemsToShow = 10,
|
||||||
}: RadioButtonSelectProps<T>): React.JSX.Element {
|
}: RadioButtonSelectProps<T>): React.JSX.Element {
|
||||||
const [activeIndex, setActiveIndex] = useState(initialIndex);
|
const [activeIndex, setActiveIndex] = useState(initialIndex);
|
||||||
|
|
Loading…
Reference in New Issue