sruti / covid19-riskfactors-app

App for practitioners showing COVID-19 risk factors for mortality, ARDS, death from ARDS
5 stars 3 forks source link

fix focus styling for mobile #21

Open sylwiavargas opened 4 years ago

sylwiavargas commented 4 years ago

When we click and then unclick a row, it still remains in focus and that's confusing:

ezgif com-video-to-gif (22)

I've tried every answer on this thread: https://stackoverflow.com/questions/23333231/bootstrap-button-shows-blue-outline-when-clicked

sylwiavargas commented 4 years ago

Included now:

.btn:active {
   background: #fff !important;
   color: #343a40 !important;
 }

It's better but it still goes back to "selected" styling after a split second.

Dana94 commented 4 years ago

Are you trying to remove the box-shadow around the check boxes when they are selected? image

Or when you select and then deselect the checkbox it remains active (dark background with white check) until another row is in focus? Then it seems to revert the colors on its own.