Bogdan's blog

Code and anything else.

Month: December 2022

Simple disable mode using only CSS

December 23, 2022 Bogdan Leave a comment css
Colored Crayons

Photo by AVI on Unsplash There is a simple way to add a visual disable state to an HTML element. We just have to add the following CSS class to the parent HTML element we want to disable: .disabled { cursor: initial; pointer-events: none; opacity: 0.5; } Caveats of this method: disabling the elements using […]

Continue reading


Search for:

Recent Posts

  • Simple disable mode using only CSS
  • Vue 3 is out – what should I do next?
  • Javascript for of index
  • Vuetify upgrade to 2
  • Fetch data needed on component’s template in Vue before render

Recent Comments

  • Luke on How to watch for changes an array/object on Angular 2
  • Raphael on Grails clean global mock on integration tests to avoid polluted environment
  • Abdul Manan on How to watch for changes an array/object on Angular 2
  • Bryan Tayler on Angular how to dynamically inject a component to DOM

Archives

  • December 2022
  • September 2020
  • June 2020
  • August 2019
  • March 2019
  • June 2018
  • January 2018
  • December 2017
  • October 2017
  • August 2017
  • June 2017
  • May 2017

Categories

  • amazon web services
  • Angular
  • Angular 2
  • Angular Material
  • cloud
  • Continuous Integration
  • css
  • grails/groovy
  • javascript
  • TypeScript
  • vuejs
  • Vuetify

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
dazzling Theme by Colorlib Powered by WordPress