mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix(ui): popovers trigger on click (accessibility)
This commit is contained in:
@ -104,7 +104,6 @@ const IAICanvasMaskOptions = () => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<IAIPopover
|
<IAIPopover
|
||||||
trigger="hover"
|
|
||||||
triggerComponent={
|
triggerComponent={
|
||||||
<ButtonGroup>
|
<ButtonGroup>
|
||||||
<IAIIconButton
|
<IAIIconButton
|
||||||
|
@ -219,7 +219,6 @@ const IAICanvasToolChooserOptions = () => {
|
|||||||
onClick={handleSelectColorPickerTool}
|
onClick={handleSelectColorPickerTool}
|
||||||
/>
|
/>
|
||||||
<IAIPopover
|
<IAIPopover
|
||||||
trigger="hover"
|
|
||||||
triggerComponent={
|
triggerComponent={
|
||||||
<IAIIconButton
|
<IAIIconButton
|
||||||
aria-label={t('unifiedCanvas.brushOptions')}
|
aria-label={t('unifiedCanvas.brushOptions')}
|
||||||
|
@ -405,7 +405,6 @@ const CurrentImageButtons = (props: CurrentImageButtonsProps) => {
|
|||||||
>
|
>
|
||||||
<ButtonGroup isAttached={true}>
|
<ButtonGroup isAttached={true}>
|
||||||
<IAIPopover
|
<IAIPopover
|
||||||
trigger="hover"
|
|
||||||
triggerComponent={
|
triggerComponent={
|
||||||
<IAIIconButton
|
<IAIIconButton
|
||||||
aria-label={`${t('parameters.sendTo')}...`}
|
aria-label={`${t('parameters.sendTo')}...`}
|
||||||
@ -505,7 +504,6 @@ const CurrentImageButtons = (props: CurrentImageButtonsProps) => {
|
|||||||
|
|
||||||
<ButtonGroup isAttached={true}>
|
<ButtonGroup isAttached={true}>
|
||||||
<IAIPopover
|
<IAIPopover
|
||||||
trigger="hover"
|
|
||||||
triggerComponent={
|
triggerComponent={
|
||||||
<IAIIconButton
|
<IAIIconButton
|
||||||
icon={<FaGrinStars />}
|
icon={<FaGrinStars />}
|
||||||
@ -535,7 +533,6 @@ const CurrentImageButtons = (props: CurrentImageButtonsProps) => {
|
|||||||
</IAIPopover>
|
</IAIPopover>
|
||||||
|
|
||||||
<IAIPopover
|
<IAIPopover
|
||||||
trigger="hover"
|
|
||||||
triggerComponent={
|
triggerComponent={
|
||||||
<IAIIconButton
|
<IAIIconButton
|
||||||
icon={<FaExpandArrowsAlt />}
|
icon={<FaExpandArrowsAlt />}
|
||||||
|
@ -55,7 +55,6 @@ export default function LanguagePicker() {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<IAIPopover
|
<IAIPopover
|
||||||
trigger="hover"
|
|
||||||
triggerComponent={
|
triggerComponent={
|
||||||
<IAIIconButton
|
<IAIIconButton
|
||||||
aria-label={t('common.languagePickerLabel')}
|
aria-label={t('common.languagePickerLabel')}
|
||||||
|
@ -50,7 +50,6 @@ export default function ThemeChanger() {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<IAIPopover
|
<IAIPopover
|
||||||
trigger="hover"
|
|
||||||
triggerComponent={
|
triggerComponent={
|
||||||
<IAIIconButton
|
<IAIIconButton
|
||||||
aria-label={t('common.themeLabel')}
|
aria-label={t('common.themeLabel')}
|
||||||
|
@ -77,7 +77,6 @@ export default function UnifiedCanvasColorPicker() {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<IAIPopover
|
<IAIPopover
|
||||||
trigger="hover"
|
|
||||||
triggerComponent={
|
triggerComponent={
|
||||||
<Box
|
<Box
|
||||||
sx={{
|
sx={{
|
||||||
|
Reference in New Issue
Block a user