sp-dev-docs icon indicating copy to clipboard operation
sp-dev-docs copied to clipboard

Most of my texts does not get BOLD

Open artxach opened this issue 9 years ago • 5 comments

Category

  • [X] Question
  • [ ] Typo
  • [X] Bug
  • [X] Enhancement / Suggestion
  • [ ] Additional article idea

Expected or Desired Behavior

I want my fontWeight to take effect on most of my texts

Observed Behavior

I use ms-fontSize-[size] and ms-fontWeight-[weight] classes of office ui fabric, font sizes work excellent but font weights do not take effect

Steps to Reproduce

I have a <span className={'ms-fontSize-xl ms-fontWeight-semibold'}>sometext</span>- but actually semibold doesn't take effect

artxach avatar Mar 31 '17 12:03 artxach

Hi @artxach, did you look at the developer console and see what is overriding your styles ?

manishgarg1 avatar Apr 17 '17 03:04 manishgarg1

the thing is that nothing is overriding it. In console developer i see the my style is applied.

artxach avatar Apr 19 '17 15:04 artxach

Can you post a screenshot of the style hierarchy from the developer console?

iclanton avatar Jun 15 '17 18:06 iclanton

Hi @artxach, did you inspect the DOM of the span to look if you had the correct classes applied. I just added a span to my page with the following code and it was bold

<span class="ms-fontSize-xl ms-fontWeight-semibold">sometext</span>

One more thing to look on your page is if the "ms-fontWeight-semibold" is a valid class name. Once the page renders, extract the whole page DOM into a text editor and search for this class.

manishgarg1 avatar Jun 15 '17 20:06 manishgarg1

Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues

msft-github-bot avatar Jan 29 '20 12:01 msft-github-bot