Skip to content

Commit

Permalink
Update styling of font appearance list items
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronrobertshaw committed Nov 5, 2020
1 parent 014d10b commit 5eaf4fc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export default function FontAppearanceControl( { value, options, onChange } ) {
name:
styleSlug === 'normal'
? weightName
: `${ weightName } - ${ styleName }`,
: `${ weightName } ${ styleName }`,
// style applies font appearance to the individual select option.
style: { fontStyle: styleSlug, fontWeight: weightSlug },
// presetStyle are the actual typography styles that should be given to onChange.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
.components-font-appearance-control__select {
margin-bottom: 24px;

ul {
li {
color: $gray-900;
text-transform: capitalize;
}
}
}

0 comments on commit 5eaf4fc

Please sign in to comment.