Skip to content

Commit

Permalink
Modify header styling
Browse files Browse the repository at this point in the history
  • Loading branch information
talldan committed Aug 2, 2018
1 parent 90152c2 commit 6e29b99
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
8 changes: 7 additions & 1 deletion edit-post/components/keyboard-shortcut-help-modal/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,12 @@ const ShortcutSection = ( { title, shortcuts } ) => (
);

export function KeyboardShortcutHelpModal( { isModalActive, toggleModal } ) {
const title = (
<span className="editor-keyboard-shortcut-help__title">
{ __( 'Keyboard Shortcuts' ) }
</span>
);

return (
<Fragment>
<KeyboardShortcuts
Expand All @@ -81,7 +87,7 @@ export function KeyboardShortcutHelpModal( { isModalActive, toggleModal } ) {
{ isModalActive && (
<Modal
className="editor-keyboard-shortcut-help"
title={ __( 'Keyboard Shortcuts' ) }
title={ title }
closeLabel={ __( 'Close' ) }
onRequestClose={ toggleModal }
>
Expand Down
9 changes: 8 additions & 1 deletion edit-post/components/keyboard-shortcut-help-modal/style.scss
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
.editor-keyboard-shortcut-help {
&__title {
font-size: 1rem;
font-weight: bold;
}

&__section {
margin: 0 0 2rem 0;
}


&__section-title {
font-size: inherit;
font-size: 0.9rem;
font-weight: bold;
}

&__shortcut {
Expand Down

0 comments on commit 6e29b99

Please sign in to comment.