A platform for community discussion. Free, open, simple.
UX: make toggle checkmark sized and positioned proportionately (#38105)
Krisf2423080d3d9
diff --git a/app/assets/stylesheets/common/components/d-toggle-switch.scss b/app/assets/stylesheets/common/components/d-toggle-switch.scssindex 6209574c5e3..1044ab94e78 100644--- a/app/assets/stylesheets/common/components/d-toggle-switch.scss+++ b/app/assets/stylesheets/common/components/d-toggle-switch.scss@@ -80,11 +80,13 @@transition: background 0.25s;.d-icon {- font-size: var(--font-down-1);+ width: calc(var(--toggle-switch-height) * 0.54);+ height: calc(var(--toggle-switch-height) * 0.54);color: var(--secondary);- left: 7px;- top: 6px;position: absolute;+ top: 50%;+ left: calc(var(--toggle-switch-height) * 0.291);+ transform: translateY(-50%);}}