-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Comments
Yes @Soean It's confusing for user. So let's find out the solution for it. |
This was originally disabled but we considered giving it a try. I don't feel strongly either way. |
This definitely needs to be fixed: 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. |
It’s not a bug, we just tried it this way because the heading is already
bold. Some editors do the same. The behavior is similar to having a whole
line bold and then selecting a word and clicking the button. Maybe what is
missing here to this experiment is having the button active by default for
heading, inactive when clicked.
…On Wed, 7 Mar 2018 at 15:57, Joen Asmussen ***@***.***> wrote:
This definitely needs to be fixed:
[image: cover image]
<https://user-images.githubusercontent.com/1204802/37082825-dfcfc38e-21ed-11e8-8e7c-b28a4b765ce4.gif>
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.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#4405 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AEfg6wm0mnIhP7D6YgdezsaMVHvRZ32Gks5tb6ELgaJpZM4Ravzo>
.
|
Ah, understood.
👍 👍 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. |
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. |
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. |
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:
and this markup after clicking bold:
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? |
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)
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
Bold Cover Image Title
The text was updated successfully, but these errors were encountered: