style: remove uppercase from labels, buttons, tabs to align with design system (#29673)
This commit is contained in:
parent
2b4a8e9083
commit
c094ac3584
|
|
@ -279,7 +279,7 @@ const config: ControlPanelConfig = {
|
|||
label: t('Number format'),
|
||||
},
|
||||
x_axis: {
|
||||
label: t('TEMPORAL X-AXIS'),
|
||||
label: t('Temporal X-Axis'),
|
||||
...temporalColumnMixin,
|
||||
},
|
||||
},
|
||||
|
|
|
|||
|
|
@ -40,7 +40,6 @@ export const GlobalStyles = () => (
|
|||
border-radius: ${theme.borderRadius}px;
|
||||
background: ${theme.colors.primary.base};
|
||||
border: none;
|
||||
text-transform: uppercase;
|
||||
color: ${theme.colors.grayscale.light5};
|
||||
line-height: 1.5715;
|
||||
font-size: ${theme.typography.sizes.s}px;
|
||||
|
|
@ -53,7 +52,6 @@ export const GlobalStyles = () => (
|
|||
border-radius: ${theme.borderRadius}px;
|
||||
background: ${theme.colors.primary.light4};
|
||||
border: none;
|
||||
text-transform: uppercase;
|
||||
color: ${theme.colors.primary.dark1};
|
||||
line-height: 1.5715;
|
||||
font-size: ${theme.typography.sizes.s}px;
|
||||
|
|
|
|||
|
|
@ -58,10 +58,6 @@
|
|||
|
||||
// Buttons ====================================================================
|
||||
|
||||
.btn {
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.btn:focus,
|
||||
.btn:active:focus {
|
||||
outline: none;
|
||||
|
|
@ -508,7 +504,6 @@ a {
|
|||
}
|
||||
|
||||
.control-label {
|
||||
text-transform: uppercase;
|
||||
color: @gray;
|
||||
font-size: @font-size-s;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -170,7 +170,6 @@ export default function Button(props: ButtonProps) {
|
|||
fontSize: typography.sizes.s,
|
||||
fontWeight: typography.weights.bold,
|
||||
height,
|
||||
textTransform: 'uppercase',
|
||||
padding: `0px ${padding}px`,
|
||||
transition: `all ${transitionTiming}s`,
|
||||
minWidth: cta ? theme.gridUnit * 36 : undefined,
|
||||
|
|
|
|||
|
|
@ -1086,7 +1086,7 @@ class DatasourceEditor extends PureComponent {
|
|||
<Col xs={24} md={12}>
|
||||
<Field
|
||||
fieldKey="databaseSelector"
|
||||
label={t('virtual')}
|
||||
label={t('Virtual')}
|
||||
control={
|
||||
<div css={{ marginTop: 8 }}>
|
||||
<DatabaseSelector
|
||||
|
|
|
|||
|
|
@ -27,7 +27,6 @@ const StyledDiv = styled.div`
|
|||
width: 50%;
|
||||
label {
|
||||
color: ${({ theme }) => theme.colors.grayscale.base};
|
||||
text-transform: uppercase;
|
||||
}
|
||||
`;
|
||||
|
||||
|
|
|
|||
|
|
@ -31,7 +31,6 @@ const StyledDropdownButton = styled.div`
|
|||
font-size: 12px;
|
||||
line-height: 13px;
|
||||
outline: none;
|
||||
text-transform: uppercase;
|
||||
&:first-of-type {
|
||||
border-radius: ${({ theme }) =>
|
||||
`${theme.gridUnit}px 0 0 ${theme.gridUnit}px`};
|
||||
|
|
|
|||
|
|
@ -24,7 +24,6 @@ const StyledItem = styled(Form.Item)`
|
|||
.ant-form-item-label {
|
||||
padding-bottom: ${theme.gridUnit}px;
|
||||
& > label {
|
||||
text-transform: uppercase;
|
||||
font-size: ${theme.typography.sizes.s}px;
|
||||
color: ${theme.colors.grayscale.base};
|
||||
|
||||
|
|
|
|||
|
|
@ -27,14 +27,12 @@ export type FormLabelProps = {
|
|||
};
|
||||
|
||||
const Label = styled.label`
|
||||
text-transform: uppercase;
|
||||
font-size: ${({ theme }) => theme.typography.sizes.s}px;
|
||||
color: ${({ theme }) => theme.colors.grayscale.base};
|
||||
margin-bottom: ${({ theme }) => theme.gridUnit}px;
|
||||
`;
|
||||
|
||||
const RequiredLabel = styled.label`
|
||||
text-transform: uppercase;
|
||||
font-size: ${({ theme }) => theme.typography.sizes.s}px;
|
||||
color: ${({ theme }) => theme.colors.grayscale.base};
|
||||
margin-bottom: ${({ theme }) => theme.gridUnit}px;
|
||||
|
|
|
|||
|
|
@ -156,7 +156,6 @@ export const StyledModal = styled(BaseModal)<StyledModalProps>`
|
|||
|
||||
.btn {
|
||||
font-size: 12px;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.btn + .btn {
|
||||
|
|
|
|||
|
|
@ -74,7 +74,6 @@ const StyledTabs = ({
|
|||
justify-content: center;
|
||||
font-size: ${theme.typography.sizes.s}px;
|
||||
text-align: center;
|
||||
text-transform: uppercase;
|
||||
user-select: none;
|
||||
.required {
|
||||
margin-left: ${theme.gridUnit / 2}px;
|
||||
|
|
|
|||
|
|
@ -124,7 +124,6 @@ const SliceAddedBadgePlaceholder: FC<{
|
|||
border-radius: ${theme.gridUnit}px;
|
||||
color: ${theme.colors.primary.dark1};
|
||||
font-size: ${theme.typography.sizes.xs}px;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.02em;
|
||||
padding: ${theme.gridUnit / 2}px ${theme.gridUnit * 2}px;
|
||||
margin-left: ${theme.gridUnit * 4}px;
|
||||
|
|
@ -151,7 +150,6 @@ const SliceAddedBadge: FC<{ placeholder?: HTMLDivElement }> = ({
|
|||
border-radius: ${theme.gridUnit}px;
|
||||
color: ${theme.colors.primary.dark1};
|
||||
font-size: ${theme.typography.sizes.xs}px;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.02em;
|
||||
padding: ${theme.gridUnit / 2}px ${theme.gridUnit * 2}px;
|
||||
margin-left: ${theme.gridUnit * 4}px;
|
||||
|
|
|
|||
|
|
@ -44,7 +44,6 @@ export const RowLabel = styled.span`
|
|||
color: ${theme.colors.grayscale.base};
|
||||
padding-right: ${theme.gridUnit * 4}px;
|
||||
margin-right: auto;
|
||||
text-transform: uppercase;
|
||||
white-space: nowrap;
|
||||
`};
|
||||
`;
|
||||
|
|
|
|||
|
|
@ -78,7 +78,6 @@ const RowPanel = styled.div`
|
|||
`;
|
||||
|
||||
const Label = styled.div`
|
||||
text-transform: uppercase;
|
||||
font-size: ${({ theme }) => theme.typography.sizes.s}px;
|
||||
color: ${({ theme }) => theme.colors.grayscale.base};
|
||||
margin-bottom: ${({ theme }) => theme.gridUnit}px;
|
||||
|
|
|
|||
|
|
@ -196,7 +196,6 @@ export const StyledRowSubFormItem = styled(FormItem)<{ expanded: boolean }>`
|
|||
export const StyledLabel = styled.span`
|
||||
color: ${({ theme }) => theme.colors.grayscale.base};
|
||||
font-size: ${({ theme }) => theme.typography.sizes.s}px;
|
||||
text-transform: uppercase;
|
||||
`;
|
||||
|
||||
const CleanFormItem = styled(FormItem)`
|
||||
|
|
|
|||
|
|
@ -160,7 +160,6 @@ const FormatPickerLabel = styled.span`
|
|||
font-size: ${({ theme }) => theme.typography.sizes.s}px;
|
||||
color: ${({ theme }) => theme.colors.grayscale.base};
|
||||
margin-bottom: ${({ theme }) => theme.gridUnit * 2}px;
|
||||
text-transform: uppercase;
|
||||
`;
|
||||
|
||||
const DataTableTemporalHeaderCell = ({
|
||||
|
|
|
|||
|
|
@ -140,7 +140,6 @@ export default function ColumnConfigControl<T extends ColumnConfig>({
|
|||
padding: theme.gridUnit * 2,
|
||||
textAlign: 'center',
|
||||
cursor: 'pointer',
|
||||
textTransform: 'uppercase',
|
||||
fontSize: theme.typography.sizes.xs,
|
||||
color: theme.colors.text.label,
|
||||
':hover': {
|
||||
|
|
|
|||
|
|
@ -128,7 +128,6 @@ export default function ControlForm({
|
|||
<div
|
||||
css={{
|
||||
label: {
|
||||
textTransform: 'uppercase',
|
||||
color: theme.colors.text.label,
|
||||
fontSize: theme.typography.sizes.s,
|
||||
},
|
||||
|
|
|
|||
|
|
@ -84,7 +84,6 @@ const ContentStyleWrapper = styled.div`
|
|||
font-weight: ${theme.typography.weights.medium};
|
||||
color: ${theme.colors.grayscale.light2};
|
||||
line-height: 16px;
|
||||
text-transform: uppercase;
|
||||
margin: 8px 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -145,8 +145,6 @@ const VizTile = ({
|
|||
css={css`
|
||||
display: flex;
|
||||
align-items: center;
|
||||
text-transform: uppercase;
|
||||
|
||||
color: ${theme.colors.grayscale.base};
|
||||
font-weight: ${theme.typography.weights.bold};
|
||||
border-radius: 6px;
|
||||
|
|
|
|||
|
|
@ -302,7 +302,6 @@ const HighlightLabel = styled.div`
|
|||
font-weight: ${theme.typography.weights.bold};
|
||||
text-align: center;
|
||||
padding: ${theme.gridUnit * 0.5}px ${theme.gridUnit}px;
|
||||
text-transform: uppercase;
|
||||
cursor: pointer;
|
||||
|
||||
div {
|
||||
|
|
|
|||
|
|
@ -31,7 +31,6 @@ const StyledDiv = styled.div`
|
|||
padding-top: ${({ theme }) => theme.gridUnit * 2}px;
|
||||
label {
|
||||
color: ${({ theme }) => theme.colors.grayscale.base};
|
||||
text-transform: uppercase;
|
||||
margin-bottom: ${({ theme }) => theme.gridUnit * 2}px;
|
||||
}
|
||||
`;
|
||||
|
|
|
|||
|
|
@ -465,7 +465,6 @@ export const CreateHeaderSubtitle = styled.div`
|
|||
export const EditHeaderTitle = styled.div`
|
||||
color: ${({ theme }) => theme.colors.grayscale.light1};
|
||||
font-size: ${({ theme }) => theme.typography.sizes.s}px;
|
||||
text-transform: uppercase;
|
||||
`;
|
||||
|
||||
export const EditHeaderSubtitle = styled.div`
|
||||
|
|
@ -480,7 +479,6 @@ export const CredentialInfoForm = styled.div`
|
|||
}
|
||||
|
||||
.label-select {
|
||||
text-transform: uppercase;
|
||||
color: ${({ theme }) => theme.colors.grayscale.dark1};
|
||||
font-size: 11px;
|
||||
margin: 0 5px ${({ theme }) => theme.gridUnit * 2}px;
|
||||
|
|
@ -553,7 +551,6 @@ export const SelectDatabaseStyles = styled.div`
|
|||
}
|
||||
|
||||
.label-available-select {
|
||||
text-transform: uppercase;
|
||||
font-size: ${({ theme }) => theme.typography.sizes.s}px;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -32,7 +32,6 @@ const QueryTitle = styled.div`
|
|||
color: ${({ theme }) => theme.colors.secondary.light2};
|
||||
font-size: ${({ theme }) => theme.typography.sizes.s}px;
|
||||
margin-bottom: 0;
|
||||
text-transform: uppercase;
|
||||
`;
|
||||
|
||||
const QueryLabel = styled.div`
|
||||
|
|
|
|||
|
|
@ -30,7 +30,6 @@ const QueryTitle = styled.div`
|
|||
color: ${({ theme }) => theme.colors.secondary.light2};
|
||||
font-size: ${({ theme }) => theme.typography.sizes.s}px;
|
||||
margin-bottom: 0;
|
||||
text-transform: uppercase;
|
||||
`;
|
||||
|
||||
const QueryLabel = styled.div`
|
||||
|
|
|
|||
|
|
@ -67,7 +67,6 @@ const AllEntitiesContainer = styled.div`
|
|||
margin-bottom: ${theme.gridUnit * 2}px;
|
||||
}
|
||||
.select-control-label {
|
||||
text-transform: uppercase;
|
||||
font-size: ${theme.gridUnit * 3}px;
|
||||
color: ${theme.colors.grayscale.base};
|
||||
margin-bottom: ${theme.gridUnit * 1}px;
|
||||
|
|
|
|||
Loading…
Reference in New Issue