Skip to content

Commit

Permalink
fix: Fix Search close button for mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
3y3 committed Oct 16, 2024
1 parent 4e1d198 commit 49393b4
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
},
"devDependencies": {
"@diplodoc/babel-preset": "^1.0.2",
"@diplodoc/components": "^4.15.3",
"@diplodoc/components": "^4.15.4",
"@diplodoc/lint": "^1.1.1",
"@diplodoc/openapi-extension": "^2.3.3",
"@diplodoc/tsconfig": "^1.0.2",
Expand Down
9 changes: 5 additions & 4 deletions src/components/Search/Suggest.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@
}

&__input {
--g-text-input-border-color: var(--g-color-line-generic-accent);
--g-text-input-border-color-hover: var(--g-color-line-generic-accent-hover);
--g-text-input-placeholder-color: var(--g-color-text-hint);

& input::placeholder {
transition: color 0.1s;
}
Expand All @@ -49,6 +45,11 @@
min-width: 36px;
max-width: 36px;

&__end {
display: block;
color: var(--g-color-text-complementary);
}

.dc-root_focused-search & {
min-width: 100%;
max-width: 100%;
Expand Down
1 change: 1 addition & 0 deletions src/components/Search/Suggest.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export function Suggest() {
endContent={<SearchButton />}
className={b('input')}
classNameContainer={b()}
classNameClose={b('close')}
closeButton={true}
/>
);
Expand Down

0 comments on commit 49393b4

Please sign in to comment.