humanmade / altis-consent

Enhanced user privacy and consent controls for Altis.
GNU General Public License v3.0
5 stars 2 forks source link

Ensure the consent overlay is clickable. #90

Closed robindevitt closed 2 years ago

robindevitt commented 2 years ago

Issue

The clickable areas for the cookie category overlay does not align with the displayed checkboxes and labels. Original Issue #991

Solution

This PR ensure the consent overlay is clickable by setting the conflicting div to position relative.

Steps to confirm

  1. Go to Any page on the site with out cookies set up so the Consent popup appears
  2. Click on Cookie Preferences
  3. You should now be able to click any of the check boxes & the labels

Screenshare

https://user-images.githubusercontent.com/16571365/161746867-bfe9cc7c-6202-4560-81f0-de414f0e7b4e.mov

robindevitt commented 2 years ago

Shall I clean up the HM Linter changes too despite not being related to this issue? Most of them look pretty straight forward except for the one where the "Expected nesting depth to be no more than 2 (max-nesting-depth)", that change may be a bit more indepth.

roborourke commented 2 years ago

I'd make a separate PR to clean up the linter errors I think, they're all on the minified CSS file and HM Linter seems to not work with .stylelintignore files so we'd need to see if the build tools can add a line like /* stylelint-disable */ to the start of the built CSS file.

roborourke commented 2 years ago

Were you able to replicate the issue on the theme in your video? Also did you test this fix with the twenty twenty two theme used in @mikelittle's video?

robindevitt commented 2 years ago

Were you able to replicate the issue on the theme in your video? Also did you test this fix with the twenty twenty two theme used in @mikelittle's video?

I was able to replicate it with Twenty Nineteen. I tried now and replicated and confirmed the fix with Twenty Twenty Two ( video added below ).

https://user-images.githubusercontent.com/16571365/161752828-117bd2c2-849b-4e51-8950-44b341af457b.mov

roborourke commented 2 years ago

Also apologies - I thought you were only referring to the linter errors from the built files, I would at least fix up the errors in the code you added / changed here e.g. changing "0px" to just "0" without units.

robindevitt commented 2 years ago

HM Linter bot changes/fixes have been implemented to the built files 👍🏼

roborourke commented 2 years ago

@robindevitt don't forget to make a new patch release if you haven't done it already!

robindevitt commented 2 years ago

Thanks @roborourke Got it now 👍🏼

robindevitt commented 2 years ago

@roborourke I may have done this incorrectly ... is a patch release the same as a tag release?

roborourke commented 2 years ago

No you did it right, I'll do an internal write up on semver versioning to help.