fix(my-joy-beta): bolder metadata name

This commit is contained in:
Sérgio Ramos 2018-01-04 15:52:56 +00:00 committed by Sérgio Ramos
parent 16733251a1
commit 2c24ce536d
5 changed files with 11 additions and 14 deletions

View File

@ -29,7 +29,7 @@ import {
DeleteIcon
} from 'joyent-ui-toolkit';
const CollapsedKeyValue = styled.span`
const CollapsedKeyValue = styled.div`
word-break: break-all;
line-height: 1.5;
white-space: nowrap;
@ -143,13 +143,11 @@ export const KeyValue = ({
<H4>{`${titleCase(method)} ${type}`}</H4>
) : (
<CollapsedKeyValue>
<span>
{!expanded ? (
`${initialValues.name}: `
) : (
<b>{`${initialValues.name}: `}</b>
)}
</span>
{expanded ? (
<span>{`${initialValues.name}: `}</span>
) : (
<b>{`${initialValues.name}: `}</b>
)}
<span>{initialValues.value}</span>
</CollapsedKeyValue>
)}

View File

@ -70,7 +70,7 @@ export const Tags = ({
const _count = !_loading ? (
<Margin bottom={4} top={addOpen && 4}>
<H3>{tags.length} tags</H3>
<H3>{tags.length} tag{tags.length === 1 ? '' : 's'}</H3>
</Margin>
) : null;

View File

@ -8,10 +8,9 @@ export default ({ theme }) => css`
display: none;
}
* {
font-family: ${
theme.font.family
}, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, Helvetica, sans-serif;
html, body {
font-display: optional;
font-family: ${theme.font.family}, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, Helvetica, sans-serif;
font-weight: ${theme.font.weight.normal};
}

View File

@ -24,6 +24,7 @@ const BaseLink = styled(({ component, children, ...rest }) =>
)`
text-decoration: none;
cursor: pointer;
font-weight: ${props => props.theme.font.weight.normal};
&:visited {
color: inherit;

View File

@ -164,7 +164,6 @@ const Button = styled(BaseButton)`
-webkit-text-fill-color: currentcolor;
background-color: ${props => props.theme.white};
border-color: ${props => props.theme.red};
font-weight: 600;
&:focus {
background-color: ${props => props.theme.white};