ngwr 16.8.0 → 17.0.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/alert/styles/_index.scss +14 -11
- package/anchor/styles/_index.scss +8 -4
- package/avatar/styles/_index.scss +2 -1
- package/back-top/styles/_index.scss +17 -9
- package/badge/styles/_index.scss +78 -1
- package/badge/styles/_tag.scss +49 -8
- package/breadcrumbs/styles/_rules.scss +1 -1
- package/burger/styles/_index.scss +2 -1
- package/button/styles/_index.scss +41 -17
- package/calendar/styles/_index.scss +47 -4
- package/card/styles/_rules.scss +6 -3
- package/carousel/styles/_index.scss +22 -11
- package/cascader/styles/_rules.scss +54 -19
- package/charts/core/styles/_index.scss +4 -2
- package/color-picker/styles/_index.scss +54 -22
- package/command-palette/styles/_index.scss +59 -40
- package/comment/styles/_index.scss +14 -4
- package/compare/styles/_index.scss +11 -5
- package/context-menu/styles/_index.scss +20 -10
- package/counter/styles/_index.scss +3 -1
- package/date-picker/styles/_index.scss +50 -22
- package/descriptions/styles/_index.scss +99 -4
- package/dialog/styles/_index.scss +25 -15
- package/divider/styles/_index.scss +2 -1
- package/drawer/styles/_index.scss +30 -16
- package/dropdown/styles/_index.scss +5 -3
- package/editor/styles/_index.scss +35 -20
- package/empty/styles/_index.scss +14 -9
- package/event-calendar/styles/_index.scss +28 -12
- package/fesm2022/ngwr-anchor.mjs +48 -10
- package/fesm2022/ngwr-anchor.mjs.map +1 -1
- package/fesm2022/ngwr-animations-marquee.mjs +4 -2
- package/fesm2022/ngwr-animations-marquee.mjs.map +1 -1
- package/fesm2022/ngwr-badge.mjs +202 -7
- package/fesm2022/ngwr-badge.mjs.map +1 -1
- package/fesm2022/ngwr-breadcrumbs.mjs +2 -2
- package/fesm2022/ngwr-breadcrumbs.mjs.map +1 -1
- package/fesm2022/ngwr-button.mjs +50 -2
- package/fesm2022/ngwr-button.mjs.map +1 -1
- package/fesm2022/ngwr-calendar.mjs +64 -9
- package/fesm2022/ngwr-calendar.mjs.map +1 -1
- package/fesm2022/ngwr-card.mjs +2 -2
- package/fesm2022/ngwr-card.mjs.map +1 -1
- package/fesm2022/ngwr-carousel.mjs +95 -21
- package/fesm2022/ngwr-carousel.mjs.map +1 -1
- package/fesm2022/ngwr-cascader.mjs +10 -10
- package/fesm2022/ngwr-cascader.mjs.map +1 -1
- package/fesm2022/ngwr-charts-core.mjs +2 -9
- package/fesm2022/ngwr-charts-core.mjs.map +1 -1
- package/fesm2022/ngwr-checkbox.mjs +8 -5
- package/fesm2022/ngwr-checkbox.mjs.map +1 -1
- package/fesm2022/ngwr-collapse.mjs +96 -18
- package/fesm2022/ngwr-collapse.mjs.map +1 -1
- package/fesm2022/ngwr-color-picker.mjs +3 -3
- package/fesm2022/ngwr-color-picker.mjs.map +1 -1
- package/fesm2022/ngwr-command-palette.mjs +15 -10
- package/fesm2022/ngwr-command-palette.mjs.map +1 -1
- package/fesm2022/ngwr-comment.mjs +4 -2
- package/fesm2022/ngwr-comment.mjs.map +1 -1
- package/fesm2022/ngwr-compare.mjs +4 -0
- package/fesm2022/ngwr-compare.mjs.map +1 -1
- package/fesm2022/ngwr-context-menu.mjs +9 -9
- package/fesm2022/ngwr-context-menu.mjs.map +1 -1
- package/fesm2022/ngwr-cookie.mjs +6 -3
- package/fesm2022/ngwr-cookie.mjs.map +1 -1
- package/fesm2022/ngwr-counter.mjs +3 -3
- package/fesm2022/ngwr-counter.mjs.map +1 -1
- package/fesm2022/ngwr-date-picker.mjs +31 -4
- package/fesm2022/ngwr-date-picker.mjs.map +1 -1
- package/fesm2022/ngwr-date-stamp-testing.mjs +3 -0
- package/fesm2022/ngwr-date-stamp-testing.mjs.map +1 -1
- package/fesm2022/ngwr-date-stamp.mjs +81 -4
- package/fesm2022/ngwr-date-stamp.mjs.map +1 -1
- package/fesm2022/ngwr-date.mjs +74 -17
- package/fesm2022/ngwr-date.mjs.map +1 -1
- package/fesm2022/ngwr-density.mjs +4 -3
- package/fesm2022/ngwr-density.mjs.map +1 -1
- package/fesm2022/ngwr-descriptions.mjs +77 -20
- package/fesm2022/ngwr-descriptions.mjs.map +1 -1
- package/fesm2022/ngwr-dialog.mjs +7 -7
- package/fesm2022/ngwr-dialog.mjs.map +1 -1
- package/fesm2022/ngwr-directives.mjs +41 -7
- package/fesm2022/ngwr-directives.mjs.map +1 -1
- package/fesm2022/ngwr-divider.mjs +4 -4
- package/fesm2022/ngwr-divider.mjs.map +1 -1
- package/fesm2022/ngwr-drawer.mjs +7 -7
- package/fesm2022/ngwr-drawer.mjs.map +1 -1
- package/fesm2022/ngwr-dropdown.mjs +3 -3
- package/fesm2022/ngwr-dropdown.mjs.map +1 -1
- package/fesm2022/ngwr-editor.mjs +18 -4
- package/fesm2022/ngwr-editor.mjs.map +1 -1
- package/fesm2022/ngwr-event-calendar.mjs +7 -5
- package/fesm2022/ngwr-event-calendar.mjs.map +1 -1
- package/fesm2022/ngwr-file-upload-testing.mjs.map +1 -1
- package/fesm2022/ngwr-file-upload.mjs +9 -31
- package/fesm2022/ngwr-file-upload.mjs.map +1 -1
- package/fesm2022/ngwr-form.mjs.map +1 -1
- package/fesm2022/ngwr-graph.mjs +7 -2
- package/fesm2022/ngwr-graph.mjs.map +1 -1
- package/fesm2022/ngwr-hotkey.mjs +10 -5
- package/fesm2022/ngwr-hotkey.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ar.mjs +12 -9
- package/fesm2022/ngwr-i18n-ar.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-cs.mjs +12 -9
- package/fesm2022/ngwr-i18n-cs.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-de.mjs +12 -9
- package/fesm2022/ngwr-i18n-de.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-en.mjs +12 -9
- package/fesm2022/ngwr-i18n-en.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-es.mjs +12 -9
- package/fesm2022/ngwr-i18n-es.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-fr.mjs +12 -9
- package/fesm2022/ngwr-i18n-fr.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-he.mjs +12 -9
- package/fesm2022/ngwr-i18n-he.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-hi.mjs +12 -9
- package/fesm2022/ngwr-i18n-hi.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-id.mjs +12 -9
- package/fesm2022/ngwr-i18n-id.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-it.mjs +12 -9
- package/fesm2022/ngwr-i18n-it.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ja.mjs +12 -9
- package/fesm2022/ngwr-i18n-ja.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-kk.mjs +12 -9
- package/fesm2022/ngwr-i18n-kk.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ko.mjs +12 -9
- package/fesm2022/ngwr-i18n-ko.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-nl.mjs +12 -9
- package/fesm2022/ngwr-i18n-nl.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-pl.mjs +12 -9
- package/fesm2022/ngwr-i18n-pl.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-pt.mjs +12 -9
- package/fesm2022/ngwr-i18n-pt.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ru.mjs +12 -9
- package/fesm2022/ngwr-i18n-ru.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-sv.mjs +12 -9
- package/fesm2022/ngwr-i18n-sv.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-tr.mjs +12 -9
- package/fesm2022/ngwr-i18n-tr.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-uk.mjs +12 -9
- package/fesm2022/ngwr-i18n-uk.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-vi.mjs +12 -9
- package/fesm2022/ngwr-i18n-vi.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-zh-tw.mjs +12 -9
- package/fesm2022/ngwr-i18n-zh-tw.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-zh.mjs +12 -9
- package/fesm2022/ngwr-i18n-zh.mjs.map +1 -1
- package/fesm2022/ngwr-i18n.mjs +14 -7
- package/fesm2022/ngwr-i18n.mjs.map +1 -1
- package/fesm2022/ngwr-icon.mjs +36 -7
- package/fesm2022/ngwr-icon.mjs.map +1 -1
- package/fesm2022/ngwr-image-cropper-testing.mjs +33 -0
- package/fesm2022/ngwr-image-cropper-testing.mjs.map +1 -1
- package/fesm2022/ngwr-image-cropper.mjs +536 -30
- package/fesm2022/ngwr-image-cropper.mjs.map +1 -1
- package/fesm2022/ngwr-knob.mjs +5 -0
- package/fesm2022/ngwr-knob.mjs.map +1 -1
- package/fesm2022/ngwr-lightbox.mjs +4 -4
- package/fesm2022/ngwr-lightbox.mjs.map +1 -1
- package/fesm2022/ngwr-list.mjs +367 -99
- package/fesm2022/ngwr-list.mjs.map +1 -1
- package/fesm2022/ngwr-load-state.mjs +7 -5
- package/fesm2022/ngwr-load-state.mjs.map +1 -1
- package/fesm2022/ngwr-loading-bar.mjs +2 -2
- package/fesm2022/ngwr-loading-bar.mjs.map +1 -1
- package/fesm2022/ngwr-mention.mjs +19 -5
- package/fesm2022/ngwr-mention.mjs.map +1 -1
- package/fesm2022/ngwr-meta.mjs +43 -8
- package/fesm2022/ngwr-meta.mjs.map +1 -1
- package/fesm2022/ngwr-overlay.mjs +41 -3
- package/fesm2022/ngwr-overlay.mjs.map +1 -1
- package/fesm2022/ngwr-pagination-testing.mjs +13 -1
- package/fesm2022/ngwr-pagination-testing.mjs.map +1 -1
- package/fesm2022/ngwr-pagination.mjs +61 -9
- package/fesm2022/ngwr-pagination.mjs.map +1 -1
- package/fesm2022/ngwr-pipes.mjs +170 -19
- package/fesm2022/ngwr-pipes.mjs.map +1 -1
- package/fesm2022/ngwr-popconfirm.mjs +4 -2
- package/fesm2022/ngwr-popconfirm.mjs.map +1 -1
- package/fesm2022/ngwr-popover.mjs +17 -11
- package/fesm2022/ngwr-popover.mjs.map +1 -1
- package/fesm2022/ngwr-qr.mjs +65 -7
- package/fesm2022/ngwr-qr.mjs.map +1 -1
- package/fesm2022/ngwr-result.mjs +21 -21
- package/fesm2022/ngwr-result.mjs.map +1 -1
- package/fesm2022/ngwr-schema-form.mjs +23 -6
- package/fesm2022/ngwr-schema-form.mjs.map +1 -1
- package/fesm2022/ngwr-scroll.mjs +1 -2
- package/fesm2022/ngwr-scroll.mjs.map +1 -1
- package/fesm2022/ngwr-select.mjs +153 -8
- package/fesm2022/ngwr-select.mjs.map +1 -1
- package/fesm2022/ngwr-slider.mjs +1 -1
- package/fesm2022/ngwr-slider.mjs.map +1 -1
- package/fesm2022/ngwr-sortable-list.mjs +3 -3
- package/fesm2022/ngwr-sortable-list.mjs.map +1 -1
- package/fesm2022/ngwr-speed-dial.mjs +30 -1
- package/fesm2022/ngwr-speed-dial.mjs.map +1 -1
- package/fesm2022/ngwr-spinner.mjs +166 -2
- package/fesm2022/ngwr-spinner.mjs.map +1 -1
- package/fesm2022/ngwr-splitter-testing.mjs +7 -1
- package/fesm2022/ngwr-splitter-testing.mjs.map +1 -1
- package/fesm2022/ngwr-splitter.mjs +63 -6
- package/fesm2022/ngwr-splitter.mjs.map +1 -1
- package/fesm2022/ngwr-statistic.mjs +18 -1
- package/fesm2022/ngwr-statistic.mjs.map +1 -1
- package/fesm2022/ngwr-stepper-testing.mjs +7 -1
- package/fesm2022/ngwr-stepper-testing.mjs.map +1 -1
- package/fesm2022/ngwr-stepper.mjs +55 -4
- package/fesm2022/ngwr-stepper.mjs.map +1 -1
- package/fesm2022/ngwr-switch.mjs +6 -4
- package/fesm2022/ngwr-switch.mjs.map +1 -1
- package/fesm2022/ngwr-table.mjs +107 -25
- package/fesm2022/ngwr-table.mjs.map +1 -1
- package/fesm2022/ngwr-tabs-testing.mjs +9 -2
- package/fesm2022/ngwr-tabs-testing.mjs.map +1 -1
- package/fesm2022/ngwr-tabs.mjs +134 -28
- package/fesm2022/ngwr-tabs.mjs.map +1 -1
- package/fesm2022/ngwr-textarea-testing.mjs +1 -1
- package/fesm2022/ngwr-textarea-testing.mjs.map +1 -1
- package/fesm2022/ngwr-textarea.mjs +32 -6
- package/fesm2022/ngwr-textarea.mjs.map +1 -1
- package/fesm2022/ngwr-timeline.mjs +4 -0
- package/fesm2022/ngwr-timeline.mjs.map +1 -1
- package/fesm2022/ngwr-toast-testing.mjs +2 -1
- package/fesm2022/ngwr-toast-testing.mjs.map +1 -1
- package/fesm2022/ngwr-toast.mjs +126 -15
- package/fesm2022/ngwr-toast.mjs.map +1 -1
- package/fesm2022/ngwr-toolbar.mjs +171 -16
- package/fesm2022/ngwr-toolbar.mjs.map +1 -1
- package/fesm2022/ngwr-tour.mjs +4 -2
- package/fesm2022/ngwr-tour.mjs.map +1 -1
- package/fesm2022/ngwr-transfer.mjs +7 -4
- package/fesm2022/ngwr-transfer.mjs.map +1 -1
- package/fesm2022/ngwr-tree.mjs +131 -23
- package/fesm2022/ngwr-tree.mjs.map +1 -1
- package/fesm2022/ngwr-utils.mjs +135 -15
- package/fesm2022/ngwr-utils.mjs.map +1 -1
- package/fesm2022/ngwr-version.mjs +1 -1
- package/fesm2022/ngwr-version.mjs.map +1 -1
- package/fesm2022/ngwr-virtual-scroll.mjs +31 -9
- package/fesm2022/ngwr-virtual-scroll.mjs.map +1 -1
- package/fesm2022/ngwr-window.mjs +1 -1
- package/fesm2022/ngwr-window.mjs.map +1 -1
- package/file-upload/styles/_index.scss +40 -19
- package/form/styles/_index.scss +21 -12
- package/graph/styles/_index.scss +2 -2
- package/i18n/ar.json +12 -9
- package/i18n/cs.json +12 -9
- package/i18n/de.json +12 -9
- package/i18n/en.json +12 -9
- package/i18n/es.json +12 -9
- package/i18n/fr.json +12 -9
- package/i18n/he.json +12 -9
- package/i18n/hi.json +12 -9
- package/i18n/id.json +12 -9
- package/i18n/it.json +12 -9
- package/i18n/ja.json +12 -9
- package/i18n/kk.json +12 -9
- package/i18n/ko.json +12 -9
- package/i18n/nl.json +12 -9
- package/i18n/pl.json +12 -9
- package/i18n/pt.json +12 -9
- package/i18n/ru.json +12 -9
- package/i18n/sv.json +12 -9
- package/i18n/tr.json +12 -9
- package/i18n/uk.json +12 -9
- package/i18n/vi.json +12 -9
- package/i18n/zh-TW.json +12 -9
- package/i18n/zh.json +12 -9
- package/image-cropper/styles/_index.scss +46 -10
- package/input/styles/_index.scss +65 -18
- package/input-number/styles/_index.scss +10 -5
- package/input-otp/styles/_index.scss +8 -5
- package/knob/styles/_index.scss +4 -2
- package/layout/styles/_index.scss +27 -12
- package/lightbox/styles/_rules.scss +36 -28
- package/list/styles/_rules.scss +23 -4
- package/llms-full.txt +16 -16
- package/llms.txt +12 -4
- package/loading-bar/styles/_rules.scss +5 -2
- package/mention/styles/_index.scss +13 -15
- package/package.json +3 -3
- package/page-header/styles/_index.scss +6 -3
- package/pagination/styles/_index.scss +38 -16
- package/popconfirm/styles/_index.scss +8 -5
- package/popover/styles/_index.scss +9 -5
- package/pull-to-refresh/styles/_index.scss +2 -1
- package/radio/styles/_index.scss +2 -1
- package/rating/styles/_index.scss +2 -1
- package/result/styles/_index.scss +15 -8
- package/schematics/migrations/v17/index.js +194 -0
- package/schematics/migrations.json +5 -0
- package/schematics/use/symbol-map.json +4 -0
- package/segmented/styles/_index.scss +26 -10
- package/select/styles/_index.scss +148 -56
- package/sidebar/styles/_index.scss +39 -22
- package/skills/ngwr/SKILL.md +4 -3
- package/skills/ngwr/references/catalog.md +2 -2
- package/slider/styles/_index.scss +2 -2
- package/sortable-list/styles/_rules.scss +19 -9
- package/speed-dial/styles/_index.scss +19 -10
- package/spinner/styles/_index.scss +24 -0
- package/splitter/styles/_index.scss +17 -3
- package/statistic/styles/_index.scss +12 -6
- package/stepper/styles/_index.scss +51 -12
- package/styles/_reset.scss +1 -1
- package/switch/styles/_index.scss +2 -1
- package/table/styles/_index.scss +199 -54
- package/tabs/styles/_index.scss +53 -1
- package/textarea/styles/_index.scss +37 -10
- package/theme/styles/_colors.scss +23 -39
- package/theme/styles/_contrast.scss +10 -8
- package/theme/styles/_focus.scss +36 -1
- package/theme/styles/_mixins.scss +19 -0
- package/theme/styles/_variables.scss +20 -2
- package/timeline/styles/_index.scss +21 -16
- package/toast/styles/_index.scss +35 -20
- package/toolbar/styles/_index.scss +9 -5
- package/tour/styles/_index.scss +12 -7
- package/transfer/styles/_index.scss +20 -11
- package/tree/styles/_index.scss +112 -37
- package/types/ngwr-anchor.d.ts +14 -1
- package/types/ngwr-badge.d.ts +104 -1
- package/types/ngwr-button.d.ts +21 -1
- package/types/ngwr-calendar.d.ts +27 -0
- package/types/ngwr-carousel.d.ts +20 -0
- package/types/ngwr-charts-core.d.ts +1 -2
- package/types/ngwr-checkbox.d.ts +2 -1
- package/types/ngwr-collapse.d.ts +41 -2
- package/types/ngwr-command-palette.d.ts +3 -0
- package/types/ngwr-date-picker.d.ts +13 -0
- package/types/ngwr-date-stamp-testing.d.ts +2 -0
- package/types/ngwr-date-stamp.d.ts +41 -2
- package/types/ngwr-date.d.ts +61 -7
- package/types/ngwr-descriptions.d.ts +33 -5
- package/types/ngwr-directives.d.ts +1 -0
- package/types/ngwr-file-upload-testing.d.ts +1 -1
- package/types/ngwr-file-upload.d.ts +1 -29
- package/types/ngwr-form.d.ts +4 -0
- package/types/ngwr-graph.d.ts +1 -1
- package/types/ngwr-hotkey.d.ts +2 -0
- package/types/ngwr-i18n.d.ts +2 -0
- package/types/ngwr-icon.d.ts +8 -0
- package/types/ngwr-image-cropper-testing.d.ts +33 -1
- package/types/ngwr-image-cropper.d.ts +214 -6
- package/types/ngwr-list.d.ts +145 -3
- package/types/ngwr-load-state.d.ts +1 -1
- package/types/ngwr-mention.d.ts +3 -0
- package/types/ngwr-meta.d.ts +13 -1
- package/types/ngwr-overlay.d.ts +30 -3
- package/types/ngwr-pagination-testing.d.ts +14 -0
- package/types/ngwr-pagination.d.ts +21 -1
- package/types/ngwr-pipes.d.ts +125 -7
- package/types/ngwr-popover.d.ts +2 -0
- package/types/ngwr-qr.d.ts +17 -0
- package/types/ngwr-result.d.ts +14 -14
- package/types/ngwr-schema-form.d.ts +22 -2
- package/types/ngwr-select.d.ts +64 -1
- package/types/ngwr-speed-dial.d.ts +10 -0
- package/types/ngwr-spinner.d.ts +66 -0
- package/types/ngwr-splitter-testing.d.ts +11 -1
- package/types/ngwr-splitter.d.ts +37 -0
- package/types/ngwr-statistic.d.ts +1 -0
- package/types/ngwr-stepper-testing.d.ts +10 -0
- package/types/ngwr-stepper.d.ts +47 -1
- package/types/ngwr-switch.d.ts +1 -1
- package/types/ngwr-table.d.ts +44 -4
- package/types/ngwr-tabs-testing.d.ts +27 -18
- package/types/ngwr-tabs.d.ts +54 -2
- package/types/ngwr-textarea-testing.d.ts +2 -1
- package/types/ngwr-textarea.d.ts +10 -0
- package/types/ngwr-toast-testing.d.ts +1 -1
- package/types/ngwr-toast.d.ts +67 -10
- package/types/ngwr-toolbar.d.ts +27 -0
- package/types/ngwr-transfer.d.ts +2 -0
- package/types/ngwr-tree.d.ts +35 -1
- package/types/ngwr-utils.d.ts +138 -2
- package/types/ngwr-version.d.ts +1 -1
- package/types/ngwr-virtual-scroll.d.ts +21 -3
- package/typography/styles/_index.scss +19 -15
- package/typography/styles/_typeset.scss +22 -26
- package/virtual-scroll/styles/_rules.scss +10 -0
- package/window/styles/_index.scss +28 -14
package/alert/styles/_index.scss
CHANGED
|
@@ -57,7 +57,10 @@ $alert-colors: (
|
|
|
57
57
|
--wr-alert-padding-y: var(--wr-space-md);
|
|
58
58
|
--wr-alert-padding-x: var(--wr-space-lg);
|
|
59
59
|
--wr-alert-body-gap: var(--wr-space-xs);
|
|
60
|
-
--wr-alert-icon-
|
|
60
|
+
--wr-alert-icon-size: var(--wr-icon-size-lg);
|
|
61
|
+
--wr-alert-icon-color: var(--wr-alert-title);
|
|
62
|
+
// Centres the icon on the title's first line.
|
|
63
|
+
--wr-alert-icon-margin-top: calc((var(--wr-alert-title-line-height) - var(--wr-alert-icon-size)) / 2);
|
|
61
64
|
--wr-alert-font-family: var(--wr-font-family-base);
|
|
62
65
|
--wr-alert-title-font-size: var(--wr-text-sm);
|
|
63
66
|
--wr-alert-title-font-weight: var(--wr-font-weight-semibold);
|
|
@@ -66,6 +69,7 @@ $alert-colors: (
|
|
|
66
69
|
--wr-alert-message-line-height: var(--wr-text-sm-leading);
|
|
67
70
|
--wr-alert-close-padding: var(--wr-space-xs);
|
|
68
71
|
--wr-alert-close-radius: var(--wr-border-radius-sm);
|
|
72
|
+
--wr-alert-close-hover-bg: color-mix(in srgb, var(--wr-alert-close) 12%, transparent);
|
|
69
73
|
--wr-alert-actions-gap: var(--wr-space-sm);
|
|
70
74
|
--wr-alert-actions-margin-top: var(--wr-space-xs);
|
|
71
75
|
|
|
@@ -80,18 +84,18 @@ $alert-colors: (
|
|
|
80
84
|
|
|
81
85
|
&__icon {
|
|
82
86
|
flex: 0 0 auto;
|
|
83
|
-
width:
|
|
84
|
-
height:
|
|
87
|
+
width: var(--wr-alert-icon-size);
|
|
88
|
+
height: var(--wr-alert-icon-size);
|
|
85
89
|
margin-top: var(--wr-alert-icon-margin-top);
|
|
86
|
-
color: var(--wr-alert-
|
|
90
|
+
color: var(--wr-alert-icon-color);
|
|
87
91
|
// A custom `<wr-icon>` sizes via this var, not width/height.
|
|
88
|
-
--wr-icon-size:
|
|
92
|
+
--wr-icon-size: var(--wr-alert-icon-size);
|
|
89
93
|
}
|
|
90
94
|
|
|
91
95
|
// `<wr-icon>` sets `color: inherit` on its own host at equal specificity;
|
|
92
96
|
// the type selector wins it back so a custom icon takes the intent colour.
|
|
93
97
|
wr-icon.wr-alert__icon {
|
|
94
|
-
color: var(--wr-alert-
|
|
98
|
+
color: var(--wr-alert-icon-color);
|
|
95
99
|
}
|
|
96
100
|
|
|
97
101
|
&__body {
|
|
@@ -163,6 +167,8 @@ $alert-colors: (
|
|
|
163
167
|
// reads it, and the rule here used to set it for nothing. The SIZE only,
|
|
164
168
|
// never the `font` shorthand, which would bring the line-height with it.
|
|
165
169
|
font-size: inherit;
|
|
170
|
+
// The box is the glyph plus the padding, not the inherited text line.
|
|
171
|
+
line-height: 0;
|
|
166
172
|
// Top of the row, by the title, rather than stretched to the alert's height:
|
|
167
173
|
// with projected content under the message, a stretched button put the ✕
|
|
168
174
|
// halfway down the alert and painted its hover tint as a full-height strip.
|
|
@@ -172,7 +178,7 @@ $alert-colors: (
|
|
|
172
178
|
|
|
173
179
|
&:hover {
|
|
174
180
|
color: var(--wr-alert-title);
|
|
175
|
-
background: var(--wr-
|
|
181
|
+
background: var(--wr-alert-close-hover-bg);
|
|
176
182
|
}
|
|
177
183
|
}
|
|
178
184
|
|
|
@@ -190,10 +196,7 @@ $alert-colors: (
|
|
|
190
196
|
--wr-alert-title: var(--wr-color-on-surface);
|
|
191
197
|
--wr-alert-message: var(--wr-color-on-surface-muted);
|
|
192
198
|
--wr-alert-close: var(--wr-color-on-surface-muted);
|
|
193
|
-
|
|
194
|
-
.wr-alert__icon {
|
|
195
|
-
color: var(--wr-color-on-surface-muted);
|
|
196
|
-
}
|
|
199
|
+
--wr-alert-icon-color: var(--wr-color-on-surface-muted);
|
|
197
200
|
}
|
|
198
201
|
|
|
199
202
|
// Offline — inverse chip. Auto-flips via the theme tokens: dark bg +
|
|
@@ -17,6 +17,10 @@ $indent: 0.875rem;
|
|
|
17
17
|
--wr-anchor-link-font-size: var(--wr-text-sm);
|
|
18
18
|
--wr-anchor-link-line-height: var(--wr-leading-snug);
|
|
19
19
|
--wr-anchor-link-active-font-weight: var(--wr-font-weight-semibold);
|
|
20
|
+
--wr-anchor-link-color: var(--wr-color-on-surface-muted);
|
|
21
|
+
--wr-anchor-link-hover-color: var(--wr-color-on-surface);
|
|
22
|
+
--wr-anchor-link-active-color: var(--wr-color-primary-ink);
|
|
23
|
+
--wr-anchor-link-active-indicator: var(--wr-color-primary);
|
|
20
24
|
|
|
21
25
|
display: block;
|
|
22
26
|
font-family: var(--wr-anchor-font-family);
|
|
@@ -53,7 +57,7 @@ $indent: 0.875rem;
|
|
|
53
57
|
display: block;
|
|
54
58
|
padding: var(--wr-anchor-link-padding-y) var(--wr-anchor-link-padding-x);
|
|
55
59
|
border-radius: var(--wr-anchor-link-radius);
|
|
56
|
-
color: var(--wr-
|
|
60
|
+
color: var(--wr-anchor-link-color);
|
|
57
61
|
font-size: var(--wr-anchor-link-font-size);
|
|
58
62
|
line-height: var(--wr-anchor-link-line-height);
|
|
59
63
|
transition:
|
|
@@ -72,16 +76,16 @@ $indent: 0.875rem;
|
|
|
72
76
|
}
|
|
73
77
|
|
|
74
78
|
&:hover {
|
|
75
|
-
color: var(--wr-
|
|
79
|
+
color: var(--wr-anchor-link-hover-color);
|
|
76
80
|
}
|
|
77
81
|
|
|
78
82
|
&--active {
|
|
79
83
|
// Text, on the page surface — `-ink` is the token for the intent AS text.
|
|
80
|
-
color: var(--wr-
|
|
84
|
+
color: var(--wr-anchor-link-active-color);
|
|
81
85
|
font-weight: var(--wr-anchor-link-active-font-weight);
|
|
82
86
|
|
|
83
87
|
&::before {
|
|
84
|
-
background: var(--wr-
|
|
88
|
+
background: var(--wr-anchor-link-active-indicator);
|
|
85
89
|
}
|
|
86
90
|
}
|
|
87
91
|
}
|
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
--wr-avatar-bg: transparent;
|
|
35
35
|
--wr-avatar-initials-color: var(--wr-color-on-surface);
|
|
36
36
|
--wr-avatar-initials-weight: var(--wr-font-weight-semibold);
|
|
37
|
+
--wr-avatar-spinner-color: var(--wr-color-on-surface-muted);
|
|
37
38
|
|
|
38
39
|
display: inline-flex;
|
|
39
40
|
align-items: center;
|
|
@@ -207,7 +208,7 @@
|
|
|
207
208
|
// A loading indicator is a status GRAPHIC, which 1.4.11 holds to 3:1: the
|
|
208
209
|
// muted role is 5.35:1 light and 7.64:1 dark on the surface it sits over.
|
|
209
210
|
// Not the faint tier, which is 2.43:1 in light.
|
|
210
|
-
color: var(--wr-
|
|
211
|
+
color: var(--wr-avatar-spinner-color);
|
|
211
212
|
--wr-spinner-size: 40%;
|
|
212
213
|
}
|
|
213
214
|
|
|
@@ -2,17 +2,25 @@
|
|
|
2
2
|
@include theme.loaded('back-top');
|
|
3
3
|
|
|
4
4
|
.wr-back-top {
|
|
5
|
+
--wr-back-top-size: 2.75rem;
|
|
6
|
+
--wr-back-top-offset: 1.5rem;
|
|
7
|
+
--wr-back-top-bg: var(--wr-color-primary);
|
|
8
|
+
--wr-back-top-hover-bg: var(--wr-back-top-bg);
|
|
9
|
+
--wr-back-top-color: var(--wr-color-primary-contrast);
|
|
10
|
+
--wr-back-top-shadow: var(--wr-shadow-float);
|
|
11
|
+
--wr-back-top-z-index: var(--wr-z-float);
|
|
12
|
+
|
|
5
13
|
position: fixed;
|
|
6
14
|
// Safe-area: lift the floating button clear of the home indicator / rounded
|
|
7
15
|
// corner on mobile. env() is 0 without insets, so desktop stays 1.5rem.
|
|
8
|
-
bottom: calc(
|
|
16
|
+
bottom: calc(var(--wr-back-top-offset) + env(safe-area-inset-bottom));
|
|
9
17
|
// The button parks at the reader's trailing corner, so the inset is logical.
|
|
10
18
|
// Its safe-area term cannot be: `env()` names the device's physical right
|
|
11
19
|
// edge and does not flip, so under RTL it pads the corner the button no
|
|
12
20
|
// longer sits in (a landscape-only 0-vs-inset difference; the 1.5rem base
|
|
13
21
|
// still holds it off the edge).
|
|
14
|
-
inset-inline-end: calc(
|
|
15
|
-
z-index:
|
|
22
|
+
inset-inline-end: calc(var(--wr-back-top-offset) + env(safe-area-inset-right));
|
|
23
|
+
z-index: var(--wr-back-top-z-index);
|
|
16
24
|
opacity: 0;
|
|
17
25
|
pointer-events: none;
|
|
18
26
|
transform: translateY(0.5rem);
|
|
@@ -27,23 +35,23 @@
|
|
|
27
35
|
}
|
|
28
36
|
|
|
29
37
|
&__button {
|
|
30
|
-
width:
|
|
31
|
-
height:
|
|
38
|
+
width: var(--wr-back-top-size);
|
|
39
|
+
height: var(--wr-back-top-size);
|
|
32
40
|
display: inline-flex;
|
|
33
41
|
align-items: center;
|
|
34
42
|
justify-content: center;
|
|
35
43
|
border: 0;
|
|
36
44
|
border-radius: 50%;
|
|
37
|
-
background: var(--wr-
|
|
38
|
-
color: var(--wr-
|
|
45
|
+
background: var(--wr-back-top-bg);
|
|
46
|
+
color: var(--wr-back-top-color);
|
|
39
47
|
cursor: pointer;
|
|
40
|
-
box-shadow: var(--wr-shadow
|
|
48
|
+
box-shadow: var(--wr-back-top-shadow);
|
|
41
49
|
transition:
|
|
42
50
|
background var(--wr-transition-base),
|
|
43
51
|
transform var(--wr-transition-base);
|
|
44
52
|
|
|
45
53
|
&:hover {
|
|
46
|
-
background: var(--wr-
|
|
54
|
+
background: var(--wr-back-top-hover-bg);
|
|
47
55
|
transform: translateY(-2px);
|
|
48
56
|
}
|
|
49
57
|
}
|
package/badge/styles/_index.scss
CHANGED
|
@@ -61,10 +61,12 @@
|
|
|
61
61
|
|
|
62
62
|
// Sizes
|
|
63
63
|
|
|
64
|
+
// Off the space scale: the three sizes step by 2px (see `lg` below), which a
|
|
65
|
+
// 4px scale cannot hold apart.
|
|
64
66
|
&--sm {
|
|
65
67
|
--wr-badge-padding-y: 0.125rem;
|
|
66
68
|
--wr-badge-padding-x: 0.375rem;
|
|
67
|
-
--wr-badge-font-size:
|
|
69
|
+
--wr-badge-font-size: var(--wr-text-2xs);
|
|
68
70
|
--wr-badge-min-height: 1.125rem;
|
|
69
71
|
}
|
|
70
72
|
|
|
@@ -146,4 +148,79 @@
|
|
|
146
148
|
}
|
|
147
149
|
}
|
|
148
150
|
}
|
|
151
|
+
|
|
152
|
+
// Count: one digit sits in a circle under `shape="pill"`, and the box only
|
|
153
|
+
// widens once the number does.
|
|
154
|
+
&--count {
|
|
155
|
+
--wr-badge-padding-x: calc(var(--wr-badge-padding-y) + 0.125rem);
|
|
156
|
+
// The containing block of the hidden label.
|
|
157
|
+
position: relative;
|
|
158
|
+
min-width: var(--wr-badge-min-height);
|
|
159
|
+
font-variant-numeric: tabular-nums;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
// Dot: the fill alone, no text box.
|
|
163
|
+
--wr-badge-dot-size: 0.5rem;
|
|
164
|
+
|
|
165
|
+
&--sm {
|
|
166
|
+
--wr-badge-dot-size: 0.375rem;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
&--lg {
|
|
170
|
+
--wr-badge-dot-size: 0.625rem;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
&--dot {
|
|
174
|
+
--wr-badge-radius: var(--wr-border-radius-pill);
|
|
175
|
+
// The containing block of the hidden label.
|
|
176
|
+
position: relative;
|
|
177
|
+
flex: none;
|
|
178
|
+
width: var(--wr-badge-dot-size);
|
|
179
|
+
height: var(--wr-badge-dot-size);
|
|
180
|
+
min-height: 0;
|
|
181
|
+
padding: 0;
|
|
182
|
+
|
|
183
|
+
// Forced colors paints every background `Canvas`, and a dot is nothing else.
|
|
184
|
+
@media (forced-colors: active) {
|
|
185
|
+
background-color: CanvasText;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
&__label {
|
|
190
|
+
@include theme.visually-hidden;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
&--hidden {
|
|
194
|
+
display: none;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
// Anchored: centred on the top end corner of `.wr-badge-anchor`. The offsets
|
|
198
|
+
// pull it inward, for a round avatar whose corner is outside the circle.
|
|
199
|
+
--wr-badge-anchor-offset-x: 0;
|
|
200
|
+
--wr-badge-anchor-offset-y: 0;
|
|
201
|
+
|
|
202
|
+
&--anchor {
|
|
203
|
+
position: absolute;
|
|
204
|
+
inset-block-start: var(--wr-badge-anchor-offset-y);
|
|
205
|
+
inset-inline-end: var(--wr-badge-anchor-offset-x);
|
|
206
|
+
z-index: 1;
|
|
207
|
+
// rtl-ok: half the badge's own width outward, mirrored under RTL below
|
|
208
|
+
translate: 50% -50%;
|
|
209
|
+
|
|
210
|
+
&:dir(rtl) {
|
|
211
|
+
// rtl-ok: the mirror of the pair above
|
|
212
|
+
translate: -50% -50%;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
// A dot draws no content at all.
|
|
216
|
+
&:empty:not(.wr-badge--dot) {
|
|
217
|
+
display: none;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
.wr-badge-anchor {
|
|
223
|
+
position: relative;
|
|
224
|
+
display: inline-flex;
|
|
225
|
+
vertical-align: middle;
|
|
149
226
|
}
|
package/badge/styles/_tag.scss
CHANGED
|
@@ -39,12 +39,15 @@
|
|
|
39
39
|
// The remove button reads the tag's own colour and radius, so it follows
|
|
40
40
|
// every variant: contrast on a fill, ink on a tint, round in a pill. Its box
|
|
41
41
|
// is the tag's content height, 22px less the border and the block padding.
|
|
42
|
-
--wr-tag-icon-size:
|
|
42
|
+
--wr-tag-icon-size: var(--wr-icon-size-sm);
|
|
43
43
|
--wr-tag-remove-size: 1rem;
|
|
44
44
|
--wr-tag-remove-icon-size: 0.75rem;
|
|
45
45
|
--wr-tag-remove-color: var(--wr-tag-color);
|
|
46
46
|
--wr-tag-remove-hover-bg: color-mix(in srgb, var(--wr-tag-color) 16%, transparent);
|
|
47
47
|
--wr-tag-remove-radius: var(--wr-tag-radius);
|
|
48
|
+
--wr-tag-selected-bg: var(--wr-color-fill-strong);
|
|
49
|
+
--wr-tag-selected-border: var(--wr-tag-color);
|
|
50
|
+
--wr-tag-selected-color: var(--wr-tag-color);
|
|
48
51
|
|
|
49
52
|
color: var(--wr-tag-color);
|
|
50
53
|
background: var(--wr-tag-bg);
|
|
@@ -56,7 +59,10 @@
|
|
|
56
59
|
font-size: var(--wr-tag-font-size);
|
|
57
60
|
font-weight: var(--wr-tag-font-weight);
|
|
58
61
|
line-height: var(--wr-tag-line-height);
|
|
59
|
-
transition:
|
|
62
|
+
transition:
|
|
63
|
+
color var(--wr-transition-base),
|
|
64
|
+
background-color var(--wr-transition-base),
|
|
65
|
+
border-color var(--wr-transition-base);
|
|
60
66
|
|
|
61
67
|
// Shape
|
|
62
68
|
&--rounded,
|
|
@@ -69,9 +75,10 @@
|
|
|
69
75
|
// per size, so `rounded` keeps its extra step at every size.
|
|
70
76
|
&--sm,
|
|
71
77
|
&:where([size='sm']) {
|
|
78
|
+
// Off the space scale, as at `md`: 1px keeps the content under the 20px
|
|
79
|
+
// floor, so `--wr-tag-min-height` sets the box. 6px is one tier under 8px.
|
|
72
80
|
--wr-tag-padding-y: 0.0625rem;
|
|
73
81
|
--wr-tag-padding-x: 0.375rem;
|
|
74
|
-
--wr-tag-font-size: 0.6875rem; // 11px, a label and not a count, so above the badge's 10px
|
|
75
82
|
--wr-tag-min-height: 1.25rem;
|
|
76
83
|
--wr-tag-icon-size: 0.75rem;
|
|
77
84
|
--wr-tag-remove-size: 0.875rem;
|
|
@@ -85,13 +92,17 @@
|
|
|
85
92
|
|
|
86
93
|
&--lg,
|
|
87
94
|
&:where([size='lg']) {
|
|
88
|
-
|
|
95
|
+
// The `md` control: its line, its block padding, 30px.
|
|
96
|
+
--wr-tag-padding-y: var(--wr-control-padding-y-md);
|
|
89
97
|
--wr-tag-padding-x: var(--wr-space-md);
|
|
90
98
|
--wr-tag-font-size: var(--wr-text-base);
|
|
91
|
-
--wr-tag-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
--wr-tag-
|
|
99
|
+
--wr-tag-line-height: var(--wr-control-line-height-md);
|
|
100
|
+
// A floor only: the line and the density-scaled padding make the 30px, so
|
|
101
|
+
// it stays under the 26.4px a compact density leaves.
|
|
102
|
+
--wr-tag-min-height: 1.5rem;
|
|
103
|
+
--wr-tag-icon-size: var(--wr-icon-size-lg);
|
|
104
|
+
--wr-tag-remove-size: 1.25rem;
|
|
105
|
+
--wr-tag-remove-icon-size: var(--wr-icon-size-md);
|
|
95
106
|
|
|
96
107
|
&.wr-tag--rounded,
|
|
97
108
|
&:where([rounded]:not([rounded='false'])) {
|
|
@@ -143,6 +154,30 @@
|
|
|
143
154
|
}
|
|
144
155
|
}
|
|
145
156
|
|
|
157
|
+
// A toggle (`selected` set) is a button.
|
|
158
|
+
&:where([aria-pressed]:not([aria-disabled='true'])) {
|
|
159
|
+
cursor: pointer;
|
|
160
|
+
|
|
161
|
+
&:hover {
|
|
162
|
+
filter: brightness(0.95);
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
// Selected: a deeper fill plus an inner ring, so the state is not the hue
|
|
167
|
+
// alone. The ring is a shadow, so the tag keeps its size.
|
|
168
|
+
&--selected {
|
|
169
|
+
color: var(--wr-tag-selected-color);
|
|
170
|
+
background: var(--wr-tag-selected-bg);
|
|
171
|
+
box-shadow: inset 0 0 0 1px var(--wr-tag-selected-border);
|
|
172
|
+
|
|
173
|
+
@media (forced-colors: active) {
|
|
174
|
+
--wr-tag-remove-color: HighlightText;
|
|
175
|
+
|
|
176
|
+
color: HighlightText;
|
|
177
|
+
background: Highlight;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
|
|
146
181
|
// Loading: keep size; dim text a touch
|
|
147
182
|
&--loading {
|
|
148
183
|
opacity: 0.85;
|
|
@@ -155,6 +190,8 @@
|
|
|
155
190
|
--wr-tag-color: var(--wr-color-#{$name}-contrast);
|
|
156
191
|
--wr-tag-bg: var(--wr-color-#{$name});
|
|
157
192
|
--wr-tag-border: var(--wr-color-#{$name});
|
|
193
|
+
--wr-tag-selected-bg: var(--wr-color-#{$name}-darker);
|
|
194
|
+
--wr-tag-selected-border: var(--wr-color-#{$name}-contrast);
|
|
158
195
|
|
|
159
196
|
// The ring reads from `-soft-border` rather than a hand-rolled alpha, so
|
|
160
197
|
// it is the same hairline `wr-badge--outlined` draws — one alpha in one
|
|
@@ -167,6 +204,8 @@
|
|
|
167
204
|
--wr-tag-color: var(--wr-color-#{$name}-ink);
|
|
168
205
|
--wr-tag-bg: color-mix(in srgb, var(--wr-color-#{$name}) 6%, transparent);
|
|
169
206
|
--wr-tag-border: var(--wr-color-#{$name}-soft-border);
|
|
207
|
+
--wr-tag-selected-bg: color-mix(in srgb, var(--wr-color-#{$name}) 20%, transparent);
|
|
208
|
+
--wr-tag-selected-border: var(--wr-color-#{$name}-ink);
|
|
170
209
|
}
|
|
171
210
|
|
|
172
211
|
&.wr-tag--transparent,
|
|
@@ -174,6 +213,8 @@
|
|
|
174
213
|
--wr-tag-color: var(--wr-color-#{$name}-ink);
|
|
175
214
|
--wr-tag-bg: color-mix(in srgb, var(--wr-color-#{$name}) 10%, transparent);
|
|
176
215
|
--wr-tag-border: transparent;
|
|
216
|
+
--wr-tag-selected-bg: color-mix(in srgb, var(--wr-color-#{$name}) 24%, transparent);
|
|
217
|
+
--wr-tag-selected-border: var(--wr-color-#{$name}-ink);
|
|
177
218
|
}
|
|
178
219
|
}
|
|
179
220
|
}
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
--wr-burger-offset-2: 0;
|
|
19
19
|
--wr-burger-stroke-3: 60 207;
|
|
20
20
|
--wr-burger-offset-3: 0;
|
|
21
|
+
--wr-burger-hover-bg: var(--wr-color-hover);
|
|
21
22
|
|
|
22
23
|
display: inline-flex;
|
|
23
24
|
|
|
@@ -39,7 +40,7 @@
|
|
|
39
40
|
transition: background var(--wr-transition-base);
|
|
40
41
|
|
|
41
42
|
&:hover {
|
|
42
|
-
background: var(--wr-
|
|
43
|
+
background: var(--wr-burger-hover-bg);
|
|
43
44
|
}
|
|
44
45
|
|
|
45
46
|
&:focus-visible {
|
|
@@ -38,19 +38,16 @@
|
|
|
38
38
|
--wr-btn-border: var(--wr-border-base);
|
|
39
39
|
--wr-btn-radius: var(--wr-control-radius-md);
|
|
40
40
|
--wr-btn-gap: var(--wr-space-sm);
|
|
41
|
+
--wr-btn-pressed-bg: var(--wr-color-fill-strong);
|
|
42
|
+
--wr-btn-pressed-border: var(--wr-btn-color);
|
|
43
|
+
--wr-btn-pressed-color: var(--wr-btn-color);
|
|
41
44
|
--wr-btn-padding-y: var(--wr-control-padding-y-md);
|
|
42
|
-
//
|
|
43
|
-
//
|
|
44
|
-
//
|
|
45
|
-
// `--wr-control
|
|
46
|
-
//
|
|
47
|
-
//
|
|
48
|
-
// fails the spacing exception and a narrower button fails it harder.
|
|
49
|
-
//
|
|
50
|
-
// The ramp was 12 / 14 / 18 and is now 12 / 16 / 24. `sm` is exact; the other
|
|
51
|
-
// two are the only assignment the five-step scale allows that keeps three
|
|
52
|
-
// distinct tiers, since 14 and 18 both sit nearest to 16 and taking that for
|
|
53
|
-
// either one collapses it into a neighbour.
|
|
45
|
+
// A button's horizontal padding is one step of the space scale wider than a
|
|
46
|
+
// field's `--wr-control-padding-x-*` at the same size: `md` / `lg` / `xl`
|
|
47
|
+
// (12 / 16 / 24px) against 8 / 12 / 16px. Every other control dimension here
|
|
48
|
+
// reads the `--wr-control-*` contract. On the contract's own padding `sm`
|
|
49
|
+
// narrows to 8px, and a packed row of `sm` buttons, which already fails the
|
|
50
|
+
// WCAG 2.5.8 spacing exception (see the size block below), fails it harder.
|
|
54
51
|
--wr-btn-padding-x: var(--wr-space-lg);
|
|
55
52
|
--wr-btn-font-family: var(--wr-font-family-base);
|
|
56
53
|
--wr-btn-font-size: var(--wr-control-font-size-md);
|
|
@@ -58,7 +55,7 @@
|
|
|
58
55
|
--wr-btn-line-height: var(--wr-control-line-height-md);
|
|
59
56
|
// Literal: no global scale sizes an icon box — the 14 / 16 / 18 ramp is the
|
|
60
57
|
// glyph's own geometry, so the hook is the only override point there is.
|
|
61
|
-
--wr-btn-icon-size:
|
|
58
|
+
--wr-btn-icon-size: var(--wr-icon-size-md);
|
|
62
59
|
|
|
63
60
|
color: var(--wr-btn-color);
|
|
64
61
|
background: var(--wr-btn-bg);
|
|
@@ -183,7 +180,7 @@
|
|
|
183
180
|
--wr-btn-padding-x: var(--wr-space-md);
|
|
184
181
|
--wr-btn-font-size: var(--wr-control-font-size-sm);
|
|
185
182
|
--wr-btn-line-height: var(--wr-control-line-height-sm);
|
|
186
|
-
--wr-btn-icon-size:
|
|
183
|
+
--wr-btn-icon-size: var(--wr-icon-size-sm);
|
|
187
184
|
}
|
|
188
185
|
|
|
189
186
|
&--lg,
|
|
@@ -194,7 +191,7 @@
|
|
|
194
191
|
--wr-btn-padding-x: var(--wr-space-xl);
|
|
195
192
|
--wr-btn-font-size: var(--wr-control-font-size-lg);
|
|
196
193
|
--wr-btn-line-height: var(--wr-control-line-height-lg);
|
|
197
|
-
--wr-btn-icon-size:
|
|
194
|
+
--wr-btn-icon-size: var(--wr-icon-size-lg);
|
|
198
195
|
}
|
|
199
196
|
|
|
200
197
|
// Shape — `rounded` (default) inherits --wr-btn-radius from the base
|
|
@@ -284,6 +281,22 @@
|
|
|
284
281
|
}
|
|
285
282
|
}
|
|
286
283
|
|
|
284
|
+
// Toggle on. The inset ring thickens the border, so the state does not rest on
|
|
285
|
+
// colour alone. `forced-colors` drops the ring and replaces the fill, so there the
|
|
286
|
+
// button takes the selection pair instead: not an outline, which would collide
|
|
287
|
+
// with the focus ring, and not a border width, which would resize the button.
|
|
288
|
+
// The label colour is its own hook because hover and press re-point `--wr-btn-color`.
|
|
289
|
+
&--pressed {
|
|
290
|
+
color: var(--wr-btn-pressed-color);
|
|
291
|
+
background: var(--wr-btn-pressed-bg);
|
|
292
|
+
box-shadow: inset 0 0 0 1px var(--wr-btn-pressed-border);
|
|
293
|
+
|
|
294
|
+
@media (forced-colors: active) {
|
|
295
|
+
color: HighlightText;
|
|
296
|
+
background: Highlight;
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
|
|
287
300
|
// Color variants
|
|
288
301
|
@each $name in theme.$colors {
|
|
289
302
|
&--#{$name},
|
|
@@ -292,6 +305,9 @@
|
|
|
292
305
|
--wr-btn-bg: var(--wr-color-#{$name});
|
|
293
306
|
--wr-btn-border: var(--wr-color-#{$name});
|
|
294
307
|
|
|
308
|
+
--wr-btn-pressed-bg: var(--wr-color-#{$name}-darker);
|
|
309
|
+
--wr-btn-pressed-border: var(--wr-color-#{$name}-contrast);
|
|
310
|
+
|
|
295
311
|
&:hover {
|
|
296
312
|
--wr-btn-bg: var(--wr-color-#{$name}-dark);
|
|
297
313
|
--wr-btn-border: var(--wr-color-#{$name}-dark);
|
|
@@ -304,6 +320,10 @@
|
|
|
304
320
|
|
|
305
321
|
&.wr-btn--outlined,
|
|
306
322
|
&:where([outlined]:not([outlined='false'])) {
|
|
323
|
+
--wr-btn-pressed-bg: color-mix(in srgb, var(--wr-color-#{$name}) 20%, transparent);
|
|
324
|
+
--wr-btn-pressed-border: var(--wr-color-#{$name}-ink);
|
|
325
|
+
--wr-btn-pressed-color: var(--wr-color-#{$name}-ink);
|
|
326
|
+
|
|
307
327
|
// `-ink`, not the bare intent. The label is TEXT on whatever surface the
|
|
308
328
|
// host gives the transparent button, and the bare token does not clear
|
|
309
329
|
// AA there: `#3567ff` on the dark canvas measures 4.06:1, and in light
|
|
@@ -334,6 +354,8 @@
|
|
|
334
354
|
&:where([ghost]:not([ghost='false'])) {
|
|
335
355
|
--wr-btn-ghost-bg-hover: color-mix(in srgb, var(--wr-color-#{$name}) 12%, transparent);
|
|
336
356
|
--wr-btn-ghost-bg-active: color-mix(in srgb, var(--wr-color-#{$name}) 20%, transparent);
|
|
357
|
+
--wr-btn-pressed-bg: color-mix(in srgb, var(--wr-color-#{$name}) 20%, transparent);
|
|
358
|
+
--wr-btn-pressed-border: var(--wr-color-#{$name}-ink);
|
|
337
359
|
--wr-btn-color: var(--wr-color-#{$name}-ink);
|
|
338
360
|
--wr-btn-bg: transparent;
|
|
339
361
|
--wr-btn-border: transparent;
|
|
@@ -355,6 +377,8 @@
|
|
|
355
377
|
}
|
|
356
378
|
|
|
357
379
|
.wr-btn-group {
|
|
380
|
+
--wr-btn-group-divider: color-mix(in srgb, var(--wr-color-backdrop) 20%, transparent);
|
|
381
|
+
|
|
358
382
|
display: inline-flex;
|
|
359
383
|
vertical-align: middle;
|
|
360
384
|
|
|
@@ -392,10 +416,10 @@
|
|
|
392
416
|
// rtl-ok: `box-shadow` offsets are physical by spec, with no logical form,
|
|
393
417
|
// so the inline-end edge is spelled once per direction. `:dir()` reads the
|
|
394
418
|
// element's own direction, so no ancestor selector is involved.
|
|
395
|
-
box-shadow: inset -1px 0 0
|
|
419
|
+
box-shadow: inset -1px 0 0 var(--wr-btn-group-divider);
|
|
396
420
|
|
|
397
421
|
&:dir(rtl) {
|
|
398
|
-
box-shadow: inset 1px 0 0
|
|
422
|
+
box-shadow: inset 1px 0 0 var(--wr-btn-group-divider);
|
|
399
423
|
}
|
|
400
424
|
|
|
401
425
|
// After the `:dir(rtl)` rule, which it ties on specificity.
|
|
@@ -39,6 +39,7 @@
|
|
|
39
39
|
--wr-calendar-quarters-gap: var(--wr-space-xs);
|
|
40
40
|
--wr-calendar-chip-font-size: var(--wr-text-sm);
|
|
41
41
|
--wr-calendar-chip-font-weight: var(--wr-font-weight-semibold);
|
|
42
|
+
--wr-calendar-hover-bg: var(--wr-color-hover);
|
|
42
43
|
|
|
43
44
|
display: inline-flex;
|
|
44
45
|
flex-direction: column;
|
|
@@ -79,7 +80,7 @@
|
|
|
79
80
|
color var(--wr-transition-base);
|
|
80
81
|
|
|
81
82
|
&:hover:not(:disabled) {
|
|
82
|
-
background: var(--wr-
|
|
83
|
+
background: var(--wr-calendar-hover-bg);
|
|
83
84
|
}
|
|
84
85
|
|
|
85
86
|
&:focus-visible {
|
|
@@ -92,6 +93,38 @@
|
|
|
92
93
|
}
|
|
93
94
|
}
|
|
94
95
|
|
|
96
|
+
&__today {
|
|
97
|
+
align-self: center;
|
|
98
|
+
appearance: none;
|
|
99
|
+
background: transparent;
|
|
100
|
+
border: 0;
|
|
101
|
+
padding: 0 var(--wr-calendar-label-padding-x);
|
|
102
|
+
color: var(--wr-calendar-accent-ink);
|
|
103
|
+
font-family: inherit;
|
|
104
|
+
font-size: var(--wr-calendar-label-font-size);
|
|
105
|
+
font-weight: var(--wr-calendar-label-font-weight);
|
|
106
|
+
line-height: var(--wr-calendar-cell-size);
|
|
107
|
+
border-radius: var(--wr-calendar-day-radius);
|
|
108
|
+
cursor: pointer;
|
|
109
|
+
transition:
|
|
110
|
+
background var(--wr-transition-base),
|
|
111
|
+
color var(--wr-transition-base);
|
|
112
|
+
|
|
113
|
+
&:hover:not(:disabled) {
|
|
114
|
+
background: var(--wr-calendar-hover-bg);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
&:focus-visible {
|
|
118
|
+
outline: var(--wr-focus-ring-width) solid var(--wr-calendar-accent);
|
|
119
|
+
outline-offset: 2px;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
&:disabled {
|
|
123
|
+
cursor: not-allowed;
|
|
124
|
+
opacity: var(--wr-disabled-opacity);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
95
128
|
&__nav {
|
|
96
129
|
appearance: none;
|
|
97
130
|
display: inline-flex;
|
|
@@ -111,7 +144,7 @@
|
|
|
111
144
|
|
|
112
145
|
&:hover:not(:disabled) {
|
|
113
146
|
color: var(--wr-calendar-color);
|
|
114
|
-
background: var(--wr-
|
|
147
|
+
background: var(--wr-calendar-hover-bg);
|
|
115
148
|
}
|
|
116
149
|
|
|
117
150
|
&:focus-visible {
|
|
@@ -192,7 +225,7 @@
|
|
|
192
225
|
color var(--wr-transition-base);
|
|
193
226
|
|
|
194
227
|
&:hover:not(:disabled):not(.wr-calendar__day--selected) {
|
|
195
|
-
background: var(--wr-
|
|
228
|
+
background: var(--wr-calendar-hover-bg);
|
|
196
229
|
}
|
|
197
230
|
|
|
198
231
|
&:focus-visible {
|
|
@@ -228,6 +261,11 @@
|
|
|
228
261
|
background: var(--wr-calendar-accent);
|
|
229
262
|
color: var(--wr-calendar-accent-contrast);
|
|
230
263
|
font-weight: var(--wr-calendar-day-font-weight);
|
|
264
|
+
|
|
265
|
+
// The fill is the accent, so the accent ring would vanish into it.
|
|
266
|
+
&:focus-visible {
|
|
267
|
+
outline-color: var(--wr-calendar-accent-contrast);
|
|
268
|
+
}
|
|
231
269
|
}
|
|
232
270
|
|
|
233
271
|
&:disabled {
|
|
@@ -284,7 +322,7 @@
|
|
|
284
322
|
color var(--wr-transition-base);
|
|
285
323
|
|
|
286
324
|
&:hover:not(:disabled):not(.wr-calendar__chip--selected) {
|
|
287
|
-
background: var(--wr-
|
|
325
|
+
background: var(--wr-calendar-hover-bg);
|
|
288
326
|
}
|
|
289
327
|
|
|
290
328
|
&:focus-visible {
|
|
@@ -313,6 +351,11 @@
|
|
|
313
351
|
background: var(--wr-calendar-accent);
|
|
314
352
|
color: var(--wr-calendar-accent-contrast);
|
|
315
353
|
font-weight: var(--wr-calendar-chip-font-weight);
|
|
354
|
+
|
|
355
|
+
// The fill is the accent, so the accent ring would vanish into it.
|
|
356
|
+
&:focus-visible {
|
|
357
|
+
outline-color: var(--wr-calendar-accent-contrast);
|
|
358
|
+
}
|
|
316
359
|
}
|
|
317
360
|
|
|
318
361
|
&:disabled {
|