Skip to content

Make the modal title styling consistent #13650

@afercia

Description

@afercia

The modal title has the following default styling:

screenshot 2019-02-04 at 09 28 36

The keyboard shortcut modal wraps the title in a <span> element, which is then styled with a bigger font size and bold font weight:

screenshot 2019-02-04 at 09 29 20

const title = (
<span className="edit-post-keyboard-shortcut-help__title">
{ __( 'Keyboard Shortcuts' ) }
</span>

If the styling with the bigger font size and bold font weight is preferred, I'd suggest to make it the default in the Modal component instead of overriding it on a case by case basis. This way, all the modals (even the ones added by plugins) will have the same styling.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions