A minor, more of a cosmetic, issue/feature request. Currently the toggle button pattern is achieved by a broad button "cut off/hidden" by an overflow:hidden (see overflow_hidden_deactivated.png). On click that leads to a visual glitch on transition leading to square-cut edges for the fraction of a second which always looks off and distracting (see overflow_hidden_deactivated_transition.png - the side the toggle is moving to is showing those square cut edges). Is the case for the recent versions of Safari, Chrome and Firefox I've tested on MacOS.

An alternative CSS only pattern might be the one shown here https://codepen.io/mburnette/pen/LxNxNg

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

rkoller created an issue. See original summary.

saschaeggi’s picture

This only seems to happen in Safari, right? I'll have a look into it.

  • saschaeggi committed 9197b60 on 8.x-3.x
    Issue #3163138 by rkoller: Toggle buttons show square-cut borders due to...
saschaeggi’s picture

Status: Active » Needs review

Fixed on 3.x-dev branch
Thanks for reporting

rkoller’s picture

Status: Needs review » Reviewed & tested by the community

no as mentioned i have tested with safari, chrome and firefox and in each of the browsers the issue was the case. :) but with your quick fix it is working as expected now! great thanks!

saschaeggi’s picture

Status: Reviewed & tested by the community » Fixed

Alright, I was only able to reproduce it with Safari but not with FF, Edge or Chrome.

saschaeggi’s picture

Status: Fixed » Closed (fixed)

Fixed in 8.x-3.0-alpha25