diff --git a/docs/docs/experimental/sandbox.md b/docs/docs/experimental/sandbox.md index 6a6ca8609..1bbbc8785 100644 --- a/docs/docs/experimental/sandbox.md +++ b/docs/docs/experimental/sandbox.md @@ -177,7 +177,11 @@ layout: page ```html {.example} -
- OCBS - OCBS - OCBS - OCBS -
-
- OCBS - OCBS - OCBS - OCBS -
-
- OCBS - OCBS - OCBS - OCBS -
-
- - OCBS -
-
- OCBS - OCBS - -
-
- OCBS - OCBS +
+
+ OCBS + OCBS + OCBS +
+
+ OCBS + OCBS + OCBS +
+
+ OCBS + OCBS + OCBS +
+
+ + + OCBS + + + OCBS +
+
+ + + OCBS + + + OCBS +
+
+ + + OCBS + + + OCBS +
+
+ OCBS + + + +
+
+ + + OCBS + + +
+
``` \ No newline at end of file diff --git a/src/components/color-picker/color-picker.styles.ts b/src/components/color-picker/color-picker.styles.ts index f0fa21461..55f71e842 100644 --- a/src/components/color-picker/color-picker.styles.ts +++ b/src/components/color-picker/color-picker.styles.ts @@ -277,7 +277,7 @@ export default css` } .color-dropdown__trigger { - display: inline-block; + display: block; position: relative; background-color: transparent; border: none; @@ -337,16 +337,6 @@ export default css` .form-control.form-control--has-label .form-control__label { cursor: pointer; - padding-bottom: 0.5em; - display: block; - } - - .form-control__input { display: inline-block; } - - .color-dropdown__container { - margin: 0 1em; - padding-bottom: 0.5em; - } `; diff --git a/src/components/range/range.styles.ts b/src/components/range/range.styles.ts index 00f772058..9257888db 100644 --- a/src/components/range/range.styles.ts +++ b/src/components/range/range.styles.ts @@ -6,7 +6,7 @@ export default css` --thumb-gap: calc(var(--thumb-size) * 0.125); --thumb-shadow: initial; --thumb-size: calc(1rem * var(--wa-form-control-value-line-height)); - --tooltip-offset: calc(var(--wa-tooltip-arrow-size) * 2.5); + --tooltip-offset: var(--wa-tooltip-arrow-size); --track-color-active: var(--wa-color-neutral-fill-normal); --track-color-inactive: var(--wa-color-neutral-fill-normal); --track-active-offset: 0%; @@ -17,6 +17,9 @@ export default css` .range { position: relative; + display: flex; + align-items: center; + height: max(var(--thumb-size), var(--track-height)); } .range__control { @@ -176,7 +179,8 @@ export default css` /* Tooltip on top */ .range--tooltip-top .range__tooltip { - top: calc(-1 * var(--thumb-size) - var(--tooltip-offset)); + /*top: calc(-1 * var(--thumb-size) - (var(--wa-tooltip-arrow-size) * 1.5) - var(--tooltip-offset));*/ + top: calc(-1 * (var(--thumb-size) * 0.5) - var(--tooltip-offset)); } .range--tooltip-top .range__tooltip:after {