Skip to content

Fix a tiny typographical nicety#7196

Merged
jasmussen merged 1 commit intomasterfrom
fix/typographic-glitch
Jun 11, 2018
Merged

Fix a tiny typographical nicety#7196
jasmussen merged 1 commit intomasterfrom
fix/typographic-glitch

Conversation

@jasmussen
Copy link
Copy Markdown
Contributor

Description

This may be my smallest PR yet. But it is still a PR dangit, and it deserves the same thorough and exhaustive reviews as any other PRs do. It deserves CPU time on travis to run thousands of unrelated tests. It deserves this because it is right.

As such, this pull request aims to fix an issue with the Cover Image block. Specifically, if you look at the description of the block in the sidebar block inspector, you will notice that the description features a --, two dashes, where it should feature an emdash, i.e. —. I can't believe an issue for this hasn't been opened, but in any case, now it's fixed.

Steps to reproduce:

  • Insert a Cover Image block
  • Add an image and title to it, or don't
  • Open the sidebar, or in case it's already opened, leave it open
  • Select the cover image block, or in case it's already selected, leave it selected
  • Note that the description shows a -- instead of a —

Tests:

  • Apply this PR
  • Repeat the steps above
  • Now verify the -- is inded a — instead
  • Verify that there are no regressions as a result of this PR

Screenshots

Before:

screen shot 2018-06-05 at 16 58 16

After:

screen shot 2018-06-07 at 09 18 40

GIF:

gif

Checklist:

  • My code is tested.
  • My code follows the WordPress code style.
  • My code follows the accessibility standards.
  • My code has proper inline documentation.

This may be my smallest PR yet. But it is still a PR dangit, and it deserves the same thorough and exhaustive reviews as any other PRs do. It deserves CPU time on travis to run thousands of unrelated tests. It deserves this because it is right.

As such, this pull request aims to fix an issue with the Cover Image block. Specifically, if you look at the description of the block in the sidebar block inspector, you will notice that the description features a --, two dashes, where it should feature an emdash, i.e. —. I can't believe an issue for this hasn't been opened, but in any case, now it's fixed.

Steps to reproduce:

- Insert a Cover Image block
- Add an image and title to it, or don't
- Open the sidebar, or in case it's already opened, leave it open
- Select the cover image block, or in case it's already selected, leave it selected
- Note that the description shows a -- instead of a —

Tests:

- Apply this PR
- Repeat the steps above
- Now verify the -- is inded a — instead
- Verify that there are no regressions as a result of this PR
@jasmussen jasmussen added the [Type] Enhancement A suggestion for improvement. label Jun 7, 2018
@jasmussen jasmussen added this to the 3.1 milestone Jun 7, 2018
@jasmussen jasmussen self-assigned this Jun 7, 2018
@jasmussen jasmussen requested a review from a team June 7, 2018 07:26
Copy link
Copy Markdown
Member

@gziolo gziolo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⭐️

@jasmussen jasmussen merged commit fe19e41 into master Jun 11, 2018
@jasmussen jasmussen deleted the fix/typographic-glitch branch June 11, 2018 06:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Type] Enhancement A suggestion for improvement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants