-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Refactor dynamicFontInjector to handle font loading errors with…
… fallback to Roboto - Added try-catch block for robust error handling during font injection - Implemented onerror event for font link element to handle loading failures - Introduced fallback mechanism to apply 'Roboto' font if the requested font fails to load - Ensured fallback applies if #calendar-widget is not found in the DOM - Removed all font inherits and replaced with dynamically added css font variable
- Loading branch information
syam babu
committed
Oct 11, 2024
1 parent
0f3dc34
commit 928eb44
Showing
5 changed files
with
48 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
#calendar-widget { | ||
height: 100%; | ||
font-family: Roboto; | ||
} | ||
|
||
#calendar-widget .loader-wrapper { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters