Most of my texts does not get BOLD
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
Hi @artxach, did you look at the developer console and see what is overriding your styles ?
the thing is that nothing is overriding it. In console developer i see the my style is applied.
Can you post a screenshot of the style hierarchy from the developer console?
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.
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