Commit Graph

3 Commits

Author SHA1 Message Date
satnaing f25377674e feat: update theme-color tag on theme switch 2023-09-26 02:04:11 +06:30
satnaing c4c9ab2246 fix: add optional chaining for theme switch event listener
Add optional chaining in the event listener of the theme switch button in toggle-theme.js file. This
is to avoid occuring an error in the console when `light & dark theme mode` is disabled.
2022-11-28 21:23:15 +06:30
satnaing 0eeed8e870 refactor: update toggle theme function for better structure and a11y
Move theme switch js codes in Layout.astro file to external js file (toggle-theme.js). Update
.prettierignore to exclude the new toggle-theme.js file.  Update base.css for new data-theme
attribute.
2022-11-26 23:43:27 +06:30