Skip to content

Commit

Permalink
fix: adjust options dialog for easier scanning (#580)
Browse files Browse the repository at this point in the history
* fix: styling for options dialog sections

* fix: width for range axis decimals/steps to allow placeholder text
  • Loading branch information
cooper-joe committed Jan 30, 2020
1 parent 7c573b7 commit b0393ff
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import TextBaseOption from './TextBaseOption'
const RangeAxisDecimals = () => (
<TextBaseOption
type="number"
width="72px"
width="96px"
label={i18n.t('Decimals')}
placeholder={i18n.t('Auto')}
option={{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import TextBaseOption from './TextBaseOption'
export const RangeAxisSteps = () => (
<TextBaseOption
type="number"
width="72px"
width="96px"
helpText={i18n.t(
'The number of axis steps between the min and max values'
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ export const tabSection = css.resolve`
div {
padding: ${spacers.dp16} 0;
}
div:not(:last-child) {
border-bottom: 1px solid ${colors.grey300};
margin-bottom: ${spacers.dp8};
}
`

export const tabSectionContent = css.resolve`
Expand All @@ -25,9 +29,11 @@ export const tabSectionContent = css.resolve`
export const tabSectionTitle = css.resolve`
span {
display: inline-block;
padding-bottom: ${spacers.dp16};
font-size: ${spacers.dp16};
padding-bottom: ${spacers.dp12};
font-size: 15px;
color: ${colors.grey900};
font-weight: 500;
letter-spacing: 0.2px;
}
`

Expand Down

0 comments on commit b0393ff

Please sign in to comment.