Skip to content

Commit 0d61291

Browse files
authored
Fix search bar disabled state (#1060)
1 parent a7b47d8 commit 0d61291

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

packages/cells/src/cells/links-cell.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -218,12 +218,12 @@ const LinksCellEditorStyle = styled.div`
218218
padding: 6px 8px;
219219
cursor: pointer;
220220
221-
:hover,
222-
:focus-visible {
221+
&:hover,
222+
&:focus-visible {
223223
background-color: var(--gdg-accent-light);
224224
}
225225
226-
:disabled {
226+
&:disabled {
227227
opacity: 0.4;
228228
pointer-events: none;
229229
}
@@ -274,8 +274,8 @@ const LinksCellEditorStyle = styled.div`
274274
275275
color: var(--gdg-text-medium);
276276
277-
:hover,
278-
:focus-visible {
277+
&:hover,
278+
&:focus-visible {
279279
background-color: var(--gdg-accent-light);
280280
color: var(--gdg-text-dark);
281281
}

packages/core/src/internal/data-grid-search/data-grid-search-style.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export const SearchWrapper = styled.div`
6161
cursor: pointer;
6262
color: var(--gdg-text-medium);
6363
64-
:hover {
64+
&:hover {
6565
color: var(--gdg-text-dark);
6666
}
6767
@@ -70,7 +70,7 @@ export const SearchWrapper = styled.div`
7070
height: 16px;
7171
}
7272
73-
:disabled {
73+
&:disabled {
7474
opacity: 0.4;
7575
pointer-events: none;
7676
}

packages/core/src/internal/data-grid-search/data-grid-search.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ const DataGridSearch: React.FunctionComponent<DataGridSearchProps> = p => {
391391

392392
return (
393393
<SearchWrapper
394-
className={showSearch ? "" : "out"}
394+
className={"gdg-search-bar" + (showSearch ? "" : " out")}
395395
onMouseDown={cancelEvent}
396396
onMouseMove={cancelEvent}
397397
onMouseUp={cancelEvent}

0 commit comments

Comments
 (0)