Fix styles of non-interactive elements
Summary: Make non-interactive elements non-focusable and disable hover styles for them Reviewed By: LukeDefeo Differential Revision: D49455532 fbshipit-source-id: a047e1a149ab4131feef70b80a4995b455441701
This commit is contained in:
committed by
Facebook GitHub Bot
parent
f3bff735cc
commit
fc5fa4a349
@@ -167,9 +167,13 @@ export const PowerSearchTerm: React.FC<PowerSearchTermProps> = ({
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<Space.Compact block size="small">
|
<Space.Compact block size="small">
|
||||||
<Button>{searchTerm.field.label}</Button>
|
<Button tabIndex={-1} style={{pointerEvents: 'none'}}>
|
||||||
|
{searchTerm.field.label}
|
||||||
|
</Button>
|
||||||
{searchTerm.operator.label ? (
|
{searchTerm.operator.label ? (
|
||||||
<Button>{searchTerm.operator.label}</Button>
|
<Button tabIndex={-1} style={{pointerEvents: 'none'}}>
|
||||||
|
{searchTerm.operator.label}
|
||||||
|
</Button>
|
||||||
) : null}
|
) : null}
|
||||||
{searchValueComponent}
|
{searchValueComponent}
|
||||||
<Button
|
<Button
|
||||||
|
|||||||
Reference in New Issue
Block a user