sensei icon indicating copy to clipboard operation
sensei copied to clipboard

Button border-radius overrides Gutenberg settings in Learning Mode

Open bryanwmiller opened this issue 3 years ago • 0 comments

Steps to Reproduce

  1. Add a button to a lesson in Learning Mode
  2. Set a border-radius for that button in Gutenberg
  3. Load that lesson

What I Expected

I expected the button to use the border-radius that was set in Gutenberg.

What Happened Instead

The button uses the border-radius from learning-mode.css until you hover over the button. Once you hover over the button, the border-radius that was set in Gutenberg applies.

PHP / WordPress / Sensei LMS version

Various PHP and WP versions (also tested on fresh install through jurrasic.ninja). Sensei 4.6.3

Browser / OS version

Chrome, MacOS

Screenshot / Video

Lesson without Learning Mode, notice the buttons with a border-radius of 100px (as set in Gutenberg).

Screen Shot 2022-09-14 at 6 01 57 PM

Lesson in Learning Mode, notice the same buttons with a border-radius of 2px (Sensei Learning Mode styles)

Screen Shot 2022-09-14 at 6 02 14 PM

Context / Source

I tried turning on the setting to use theme styles in Learning Mode, but it did not make a difference.

bryanwmiller avatar Sep 14 '22 23:09 bryanwmiller