Commit d41e015
fix(DatePicker): make underline variant border override order-independent
The underline variant relied on datepicker.module.scss's
.picker-underline { border-color: transparent } outranking the base
.picker { border: var(--picker-border) } from ocpicker.module.scss.
Both selectors have equal specificity, so the winner was decided by
CSS emission order in the consuming app's webpack build — which is
derived from the app-wide import graph and can flip on unrelated
changes (mini-css-extract conflicting-order resolution). When it
flips, the box border reappears around underline-sized content and
clips the suffix calendar icon.
Declare border-color: transparent inside ocpicker.module.scss's own
.picker-underline block, where same-file source order guarantees it
always follows the base .picker rule regardless of bundler ordering.
Covers DatePicker, TimePicker and RangePicker (shared internal styles).
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent 708a1d6 commit d41e015
1 file changed
Lines changed: 7 additions & 1 deletion
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
1705 | 1705 | | |
1706 | 1706 | | |
1707 | 1707 | | |
| 1708 | + | |
| 1709 | + | |
| 1710 | + | |
| 1711 | + | |
| 1712 | + | |
| 1713 | + | |
1708 | 1714 | | |
1709 | 1715 | | |
1710 | 1716 | | |
| |||
0 commit comments