bcgov / MFIN-Data-Catalogue

The Finance Data Catalogue enables users to discover data holdings at the BC Ministry of Finance and offers information and functionality that benefits consumers of data for business purposes. The product is built using Drupal and adheres to the Government of BC's Core Administrative and Descriptive etadata Standard.
Other
6 stars 0 forks source link

Increase visibility of checkbox borders #544

Open david-fong-bc opened 1 month ago

david-fong-bc commented 1 month ago

User story

As a first-time user of FDC with average or poor eyesight, I'd like to be able to see the outlines of (unchecked) checkboxes for items in the search results page clearly enough to notice their presence. They don't need to be attention-drawing- just more more noticeable so a first-time user won't miss them, and users with poor-eyesight can probably see them if they can see regular text on the page.

The current radio buttons are fine. The visibility of checked checkboxes is also fine. This issue ticket is really just about checkboxes in their unchecked state.

This feature supports the following requirements

Additional context

The styling for this comes from bcbb's _boostrap.scss file, which sets

.bcbb-theme input[type=checkbox] {
    border-color: rgb(217, 217, 217);
}

Proposed solution

Estimated level of effort

Definition of done (DoD)

Testing

This feature requires manual testing

  1. Run a search and check that the checkboxes are noticeably visible.

Other musings

I wonder if the maintainers of bcbb would agree that this styling rule (.bcbb-theme input[type=checkbox]) has detrimentally low visibility.

danhgov commented 1 month ago

This seems like such a simple task -- and it would have been for Openplus, as this is the system they set up. But for me:

david-fong-bc commented 1 month ago

@danhgov I found something closer to the source in https://github.com/bcgov/bcbb-theme/blob/1.0.x/scss/overrides/_bootstrap.scss#L4, which refers to a variable, colorInputBorder defined in https://github.com/bcgov/bcbb-theme/blob/a8ee8013eb2ffc8b34d9ead2ecb4d5be1bc084b0/scss/_variables.scss#L38. Since it's a colour variable, it might be better to just change border-width and keep using the standard input border colour.

danhgov commented 1 month ago

This is resolved now, and visible at https://dev.cat.data.fin.gov.bc.ca/search

I darkened them a little further-- to 75% grey, aka rgb(192,192,192) aka #c0c0c0.

Made the change locally in MFIN DC, compiled the SCSS, rsynced it to a separate project for bcbb_theme, committed it there, then had to update composer.lock in MFIN DC to pull in the new version of bcbb_theme, and made a commit in this project for that change.

danhgov commented 1 month ago

@lkmorlan, do you mind sharing your workflow for changes to bcbb_theme? As I mentioned above, I just made a small CSS change, and it was very convoluted:

  1. On my localhost, update the _variables.scss file in MFIN DataCatalogue, and run sass to compile.
  2. Test that the CSS changes achieve the desired effect.
  3. Checkout bcbb_theme to a new project.
  4. Copy my compiled changes from MFIN DataCatalogue into this new project: rsync -av ~/MFIN-datacatalogue/html/themes/custom/bcbb_theme/ ~/bcbb_theme
  5. git commit in the new bcbb_theme project
  6. push to github
  7. composer update bcbb/bcbb_theme in MFIN DataCatalogue
  8. commit the resultant change to composer.lock

I'm sure there are much easier ways to do this next time, like maybe using 'git subtree'.

How did you have your system set up for committing changes to this dependent project?

NicoledeGreef commented 1 month ago

@danhgov thanks - looks good.