Adapt_framework: adapt-contrib-vanilla: font weight not defined for <strong> and <b>

Created on 6 Jul 2021  路  2Comments  路  Source: adaptlearning/adapt_framework

Should we define a font-weight variable for <strong> and <b>tags in the theme?

I'd suggest the following for __font-mixins.less_:

b,
strong {
  font-weight: @font-weight-bold;
}

In _core/less/_browser/normalize.less_ we have the following:

b,
strong {
  font-weight: bolder;
}

This often causes inconsistencies in weights where we have specified a set weight for other bold items.

question

All 2 comments

Yes, I think that's sensible.

Agree with the suggestion though do you think it should be defined in base.less in core like the below?

b,
strong {
  font-weight: bold;
}
Was this page helpful?
0 / 5 - 0 ratings