Skip to content
Snippets Groups Projects
Unverified Commit a4649b60 authored by Ryan Laurie's avatar Ryan Laurie Committed by GitHub
Browse files

standardize input border radii to 8px (#23840)

parent 457e172d
No related branches found
No related tags found
No related merge requests found
import styled from "@emotion/styled";
import { css } from "@emotion/react";
import { color, darken } from "metabase/lib/colors";
import { color } from "metabase/lib/colors";
import { space } from "metabase/styled-components/theme";
import IconButtonWrapper from "metabase/components/IconButtonWrapper";
import { InputSize } from "./types";
......@@ -26,7 +27,7 @@ export const InputField = styled.input<InputProps>`
color: ${color("text-dark")};
padding: 0.75rem;
border: 1px solid ${color("border-dark")};
border-radius: 4px;
border-radius: ${space(1)};
background-color: ${props => color(props.readOnly ? "bg-light" : "bg-white")};
outline: none;
text-align: inherit;
......
import styled from "@emotion/styled";
import { color } from "metabase/lib/colors";
import Icon from "metabase/components/Icon";
import { space } from "metabase/styled-components/theme";
interface SelectButtonRootProps {
hasValue: boolean;
fullWidth: boolean;
......@@ -27,7 +27,7 @@ export const SelectButtonRoot = styled.button<SelectButtonRootProps>`
hasValue && highlighted ? color("brand") : color("border-dark")};
background-color: ${({ hasValue, highlighted }) =>
hasValue && highlighted ? color("brand") : color("white")};
border-radius: 8px;
border-radius: ${space(1)};
font-weight: 700;
min-width: 104px;
transition: all 200ms;
......
import styled from "@emotion/styled";
import { color } from "metabase/lib/colors";
import { space } from "metabase/styled-components/theme";
import NumericInput from "metabase/core/components/NumericInput";
import Input from "metabase/core/components/Input";
......@@ -8,7 +9,7 @@ export const CompactInputContainer = styled.div`
align-items: center;
padding: 0.55rem 1rem;
border-radius: 8px;
border-radius: ${space(1)};
border: 1px solid ${color("border")};
background-color: ${color("white")};
`;
......
:root {
--form-field-border-color: var(--color-border-dark);
--input-border-radius: 8px;
}
::-webkit-input-placeholder {
color: var(--color-text-light);
......@@ -40,7 +41,7 @@
.Form-input,
.Form-input-border {
border: 1px solid var(--form-field-border-color);
border-radius: 4px;
border-radius: var(--input-border-radius);
outline: none;
}
......
:root {
--input-border-color: var(--color-border-dark);
--input-border-active-color: var(--color-brand);
--input-border-radius: 4px;
--input-border-radius: 8px;
}
.input,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment