Skip to content

dropdown and search input css fixes #431

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion public/app.js

Large diffs are not rendered by default.

18 changes: 11 additions & 7 deletions src/styles/controls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,18 +59,22 @@ export const controlsGroupLastCss = css`
`;

export const controlsInputCss = css`
${formControlCss}
border: 1px solid ${color.medium};
&:focus {
border: 1px solid ${color.dark};
outline: none;
&[type='search'] {
${formControlCss}
border: 1px solid ${color.medium};
&:focus {
border: 1px solid ${color.dark};
outline: none;
}
}
`;

export const controlsInputFirstCss = css`
${controlsInputCss}
border-bottom-right-radius: 0 !important;
border-top-right-radius: 0 !important;
&[type='search'] {
border-bottom-right-radius: 0 !important;
border-top-right-radius: 0 !important;
}
`;

export const controlsSearchDropdownCss = css`
Expand Down
5 changes: 4 additions & 1 deletion src/styles/dropdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ export const dropdownCss = css`
border-radius: var(--border-radius);
border: 1px solid ${color.medium};
margin-top: 4px;
max-height: 50vh;
min-width: 100%;
overflow: hidden;
overflow-x: hidden;
overflow-y: auto;
position: absolute;
z-index: 1000;

Expand All @@ -20,6 +22,7 @@ export const dropdownCss = css`
border: 0;
height: 1px;
margin: 0;
width: 100%;
}

button {
Expand Down
Loading