change font bold

This commit is contained in:
Casper Lamboo 2019-02-21 20:54:59 +01:00
parent 8015cd780d
commit 3b440b346a
2 changed files with 5 additions and 3 deletions

View File

@ -48,9 +48,11 @@ class Accordion extends React.Component {
return elements.map(({ body, title }, i) => ( return elements.map(({ body, title }, i) => (
<span key={i}> <span key={i}>
<span className={classes.title}> <span onClick={() => this.changeAccordion(title)} className={classes.title}>
<ExpandIcon /> <ExpandIcon />
<p onClick={() => this.changeAccordion(title)} className={classes.button}>{title}</p> <p style={{
fontWeight: openAccordion === title ? 'bold' : 'normal'
}} className={classes.button}>{title}</p>
</span> </span>
<div className={`${classes.body} ${openAccordion === title ? '' : classes.closed}`}> <div className={`${classes.body} ${openAccordion === title ? '' : classes.closed}`}>
{body} {body}

View File

@ -39,7 +39,7 @@ const styles = {
flexGrow: 1, flexGrow: 1,
overflowY: 'auto', overflowY: 'auto',
'& p': { '& p': {
fontWeight: 'bold', // fontWeight: 'bold',
margin: '30px 0 0 0' margin: '30px 0 0 0'
}, },
'& h3': { '& h3': {