The code logic inside the Lesson/Topic Action Buttons is very strange and inconsistently written.
Both of the following styles are for the "Completed" text in lesson/topic action buttons. However they both have different styling, and I've not found it possible to fix them via custom code...
"completeTopicButton" | this has weight: FontWeights.bold
"completeButton" | this has weight: FontWeights.semiBold
So despite both of these styles representing the same component, they both have different font weights.
The following code kinda fixes the problem on iOS, but not Android:
externalCodeSetup.cssApi.addGlobalStyle("completeTopicButton", { fontWeight: '600', });
It's odd how I need two styling hooks in lessons, and only one in topics, to achieve the same thing..
The code logic inside the Lesson/Topic Action Buttons is very strange and inconsistently written.
Both of the following styles are for the "Completed" text in lesson/topic action buttons. However they both have different styling, and I've not found it possible to fix them via custom code...
completeTopicButton
" | this hasweight: FontWeights.bold
completeButton
" | this hasweight: FontWeights.semiBold
So despite both of these styles representing the same component, they both have different font weights.
The following code kinda fixes the problem on iOS, but not Android:
externalCodeSetup.cssApi.addGlobalStyle("completeTopicButton", { fontWeight: '600', });
It's odd how I need two styling hooks in lessons, and only one in topics, to achieve the same thing..
Lessons
Topics