The rationale for overriding typography in this module rather than at a lower level was to keep gel-typography for 'true' GEL styles.
To date we have not generated any overrides for latin-diacritics or arabic-pashto which RN had, because of doubts about whether they are needed.
The unfortunate use of lots of @if statements in separate files is because SASS doesn't allow @import inside @if, nor variable interpolation inside @import.
The typographic overrides here are derived from https://github.com/BBC-News/responsive-news/blob/develop/tabloid/webapp/static/sass/tools/_rtl.scss
The rationale for overriding typography in this module rather than at a lower level was to keep
gel-typography
for 'true' GEL styles.To date we have not generated any overrides for
latin-diacritics
orarabic-pashto
which RN had, because of doubts about whether they are needed.The unfortunate use of lots of
@if
statements in separate files is because SASS doesn't allow@import
inside@if
, nor variable interpolation inside@import
.An example of this being used (in a Morph module) is: https://github.com/bbc/morph-modules/pull/4640
Jira ticket: WSRESPONSIVE-4349