Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Font Weight issue on Cover Image Title #4405

Closed
monika-12 opened this issue Jan 11, 2018 · 9 comments
Closed

Font Weight issue on Cover Image Title #4405

monika-12 opened this issue Jan 11, 2018 · 9 comments
Labels
[Feature] Blocks Overall functionality of blocks [Type] Bug An existing feature does not function as intended

Comments

@monika-12
Copy link

Issue Overview
Font Weight difference on Cover Image Title displayed. By default cover image title displayed in font-weight 600 but after click on bold it reduces font-weight to 300.

Steps to Reproduce (for bugs)

  1. Insert Cover Image
  2. Enter Title
  3. By Default it displayed bold
  4. Click on Bold to make it bold but it will reduce font-weight

I am Using Linux and Google Chrome browser

Expected Behavior

After clicking on Bold it should display in bold text.

Current Behavior

Displayed by default in bold and after clicking on bold displayed in thin font.

Default Cover Image Title
default-title

Bold Cover Image Title
clickonbold

@Soean Soean added [Type] Bug An existing feature does not function as intended Good First Issue An issue that's suitable for someone looking to contribute for the first time [Status] Needs More Info Follow-up required in order to be actionable. and removed Good First Issue An issue that's suitable for someone looking to contribute for the first time [Type] Bug An existing feature does not function as intended labels Jan 11, 2018
@Soean
Copy link
Member

Soean commented Jan 11, 2018

I agree, that this behavior is not expected by the user.

This "feature" was added in #1495 by @mtias

@monika-12
Copy link
Author

Yes @Soean It's confusing for user. So let's find out the solution for it.

@mtias
Copy link
Member

mtias commented Mar 6, 2018

This was originally disabled but we considered giving it a try. I don't feel strongly either way.

cc @jasmussen @iseulde

@mtias mtias added Needs Design Feedback Needs general design feedback. and removed [Status] Needs More Info Follow-up required in order to be actionable. labels Mar 6, 2018
@jasmussen
Copy link
Contributor

This definitely needs to be fixed:

cover image

Originally the font was always bold, and clicking "B" to make it bold did not make it bolder still. I believe there's simply a bug in the implementation of this that sort of inverts the behavior. Seems like we should simply switch places for the 300 and 600 font weights.

@jasmussen jasmussen added [Type] Bug An existing feature does not function as intended and removed Needs Design Feedback Needs general design feedback. labels Mar 7, 2018
@ellatrix
Copy link
Member

ellatrix commented Mar 7, 2018 via email

@jasmussen
Copy link
Contributor

Ah, understood.

Maybe what is
missing here to this experiment is having the button active by default for
heading, inactive when clicked.

👍 👍 that seems like it could work.

Alternatively, I think we should just revert to the behavior where the "bold" button does nothing, because as you say, headings are usually bold. In this case the theme would at least be able to change whether a heading was bold or not, which would then surface the bold behavior. I'd be fine with that, because as you mention, this is an issue with headings, including the Heading block.

@mtias
Copy link
Member

mtias commented Mar 7, 2018

Alternatively, I think we should just revert to the behavior where the "bold" button does nothing, because as you say, headings are usually bold.

The original implementation didn't have the bold button there. The point being raised is that a theme could not have a cover image or heading in bold weights, and then the button just looks broken.

@ZebulanStanphill
Copy link
Member

I guess this can be closed now that the Cover Image block is switching to use nested blocks and so it will just use a standard Heading block by default? See #5452.

@designsimply
Copy link
Member

I tested this with WordPress 4.9.7 and Gutenberg 3.2.0 and found that cover image text (in the editor) has this markup before clicking bold:

<p class="wp-block-cover-image-text">Cover Image Text</p>

and this markup after clicking bold:

<p class="wp-block-cover-image-text"><strong>Cover Image Text</strong></p>

In my test (I'm using the Atomic Blocks theme at the moment if that's relevant? also Firefox 61.0.1 on macOS 10.13.6), I did not see a difference in the font weight when clicking the bold button. I think this is working as expected now so I am closing this issue, but @monika-12 would you please leave a new comment if you think the issue should stay open?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Blocks Overall functionality of blocks [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

No branches or pull requests

7 participants