Latest solutions
rest-countries Angular17, interceptors, errors handle, leazy loading
#angular#bem#rxjs#sass/scssSubmitted over 1 year agoI have a couple of errors in the console. One is due to change detections and the other is due to an undefined error when rendering the flag image on the inner page. If anyone can help me, it would be great.
ecommerce-product-page-main with scss, angular17, store
#angular#bem#sass/scss#typescript#rxjsSubmitted over 1 year agoI can receive any advice that can help me.
TodoAppMain with angular 17, cdk angular material, persistence, scss
#angular#sass/scss#typescriptSubmitted over 1 year agoI would also like someone to help me with an issue I'm having on mobile devices. The Android button appears as "Next" and I need it to always be "Go".
Latest comments
- @scroft001@AndresFelipeForero
Hi steve, how are you?
In this project you can try whith around 800px as media-queryx. In this way the page breaks a little less.
Good luck 👍
- @AdrianoEscarabote
News homepage w/ (HTML + SASS + Bootstrap + JS Dark/Light Mode) 👨💻
#accessibility#bootstrap#sass/scss@AndresFelipeForeroHi,
about your question, you can use a dataAttribute, then you can use foreach and finally add the class you need.
example:
HTML
<body data-dark ></body> <main data-dark ></main>
Javscript
$darkElements = document.querySelectorAll([data-dark]) $darkElements.forEach(el => el.classList.toggle("night"))
CSS
.night { styles }
that would be the summary, remember you have to use an event.
Marked as helpful