actual-css 0.11.1 → 0.12.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/CHANGELOG.md +47 -0
- package/README.md +26 -6
- package/components.json +4 -16
- package/dist/actual.full.css +296 -267
- package/dist/actual.full.min.css +1 -1
- package/docs/brand/favicon.svg +5 -0
- package/docs/brand/lockup.svg +12 -0
- package/docs/brand/logo-dark.svg +9 -0
- package/docs/brand/logo-light.svg +9 -0
- package/docs/brand/logo.svg +11 -0
- package/docs/brand/mark.svg +11 -0
- package/docs/navigation.json +3 -2
- package/docs/pages/components/alert.md +2 -10
- package/docs/pages/components/badge.md +3 -9
- package/docs/pages/components/card.md +31 -2
- package/docs/pages/components/dialog.md +121 -33
- package/docs/pages/components/drawer.md +2 -2
- package/docs/pages/components/navbar.md +8 -9
- package/docs/pages/components/table.md +3 -3
- package/docs/pages/enhancements/flyout.md +2 -2
- package/docs/pages/enhancements/scrollspy.md +1 -1
- package/docs/pages/enhancements/status-bar.md +2 -2
- package/docs/pages/examples/overview.md +2 -1
- package/docs/pages/forms/date-picker.md +90 -0
- package/docs/pages/forms/detached-actions.md +37 -30
- package/docs/pages/forms/form-actions.md +61 -28
- package/docs/pages/forms/input-policy.md +1 -1
- package/docs/pages/forms/overview.md +6 -5
- package/docs/pages/forms/sticky-actions.md +85 -83
- package/docs/pages/forms/validation.md +5 -5
- package/docs/pages/foundations/philosophy.md +5 -3
- package/docs/pages/foundations/theming.md +15 -4
- package/docs/pages/foundations/tokens.md +50 -33
- package/docs/pages/foundations/typography.md +4 -7
- package/docs/pages/guides/bootstrap.md +2 -2
- package/docs/pages/guides/design-tools.md +2 -2
- package/docs/pages/guides/integrating-actual-css.md +5 -1
- package/docs/pages/guides/introduction.md +3 -4
- package/docs/pages/guides/modular-import.md +3 -0
- package/docs/pages/guides/progressive-enhancement.md +2 -2
- package/docs/pages/guides/tailwind.md +70 -0
- package/docs/pages/guides/upgrading.md +74 -0
- package/docs/pages/layout/cluster.md +28 -2
- package/docs/pages/layout/overview.md +1 -1
- package/docs/pages/layout/stack.md +21 -16
- package/docs/pages/layout/topbar.md +1 -1
- package/docs/pages/patterns/navigation-list.md +16 -46
- package/docs/pages/patterns/overview.md +3 -4
- package/docs/pages/utilities/flex.md +30 -20
- package/docs/pages/utilities/sizing-wrapping.md +1 -1
- package/docs/pages/utilities/spacing.md +4 -3
- package/package.json +2 -2
- package/reserved-classes.json +3 -3
- package/skills/actual-css/references/enhancements.md +10 -7
- package/src/cli/actual-css.js +39 -13
- package/src/css/components/avatar.css +16 -9
- package/src/css/components/badge.css +1 -5
- package/src/css/components/button.css +3 -9
- package/src/css/components/card.css +18 -10
- package/src/css/components/chat.css +4 -5
- package/src/css/components/drawer.css +19 -3
- package/src/css/components/flyout.css +3 -0
- package/src/css/components/index.css +0 -1
- package/src/css/components/modal.css +96 -124
- package/src/css/components/navbar.css +14 -25
- package/src/css/core/base.css +1 -1
- package/src/css/core/reset.css +2 -1
- package/src/css/core/theme.css +4 -0
- package/src/css/core/tokens.css +28 -10
- package/src/css/core/variants.css +41 -14
- package/src/css/forms/form-actions.css +15 -10
- package/src/css/layout/cluster.css +11 -0
- package/src/css/layout/topbar.css +12 -6
- package/src/css/utilities/base.css +5 -0
- package/src/css/utilities/extra.css +3 -7
- package/src/tooling/color.js +65 -0
- package/src/tooling/design-tokens.js +9 -1
- package/src/tooling/theme-contrast.js +209 -0
- package/docs/pages/patterns/actions.md +0 -52
- package/src/css/components/actions.css +0 -27
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="32" height="32"><title>Actual</title>
|
|
2
|
+
<rect width="32" height="32" rx="7" fill="#52396F"/>
|
|
3
|
+
<path fill="#F4EFFA" fill-rule="evenodd" d="M10.0,26.5 L27.6,26.5 L18.8,7.5ZM22.7,23.4 L14.9,23.4 L18.8,14.9Z"/>
|
|
4
|
+
<path fill="#C4A8E8" d="M4.4,26.5 L7.6,26.5 L15.7,9.0 L14.1,5.5Z"/>
|
|
5
|
+
</svg>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="-226 -82 7688 1067" width="1922" height="267" role="img" aria-label="Actual·css"><title>Actual·css</title>
|
|
2
|
+
<!-- Docs adaptation: fills follow the site theme via --text/--primary, with the
|
|
3
|
+
brand hex as fallback for standalone rendering. The OS-scheme override
|
|
4
|
+
is dropped on purpose: the docs theme picker owns the scheme. -->
|
|
5
|
+
<style>
|
|
6
|
+
.t { fill: var(--text, #52396F); }
|
|
7
|
+
.d { fill: var(--primary, #9B7BCB); }
|
|
8
|
+
</style>
|
|
9
|
+
<path class="t" d="M698 800H42L370 89ZM100 763H640L370 177ZM1117 778Q1185 778 1240 751Q1295 724 1326.5 676Q1358 628 1359 568H1395Q1395 637 1358.5 693.5Q1322 750 1258.5 782.5Q1195 815 1117 815Q1041 815 976 777Q911 739 873 674.5Q835 610 835 534V370Q835 294 872.5 229.5Q910 165 974.5 127Q1039 89 1115 89Q1192 89 1255.5 121.5Q1319 154 1356 210.5Q1393 267 1393 336H1357Q1356 276 1324 228Q1292 180 1237.5 153Q1183 126 1115 126Q1049 126 993 159Q937 192 904 248Q871 304 871 370V534Q871 600 904.5 656Q938 712 994.5 745Q1051 778 1117 778ZM2131 104V141H1868V800H1832V141H1569V104ZM2309 104H2346V534Q2346 600 2379 656Q2412 712 2468 745Q2524 778 2590 778Q2656 778 2712 745Q2768 712 2801 656Q2834 600 2834 534V104H2871V534Q2871 610 2833 674.5Q2795 739 2730.5 777Q2666 815 2590 815Q2514 815 2449.5 777Q2385 739 2347 674.5Q2309 610 2309 534ZM3311 104H3350L3636 800H3596L3502 570H3159L3064 800H3025ZM3174 534H3487L3330 152ZM3855 800V104H3892V763H4377V800ZM5557 778Q5625 778 5680 751Q5735 724 5766.5 676Q5798 628 5799 568H5835Q5835 637 5798.5 693.5Q5762 750 5698.5 782.5Q5635 815 5557 815Q5481 815 5416 777Q5351 739 5313 674.5Q5275 610 5275 534V370Q5275 294 5312.5 229.5Q5350 165 5414.5 127Q5479 89 5555 89Q5632 89 5695.5 121.5Q5759 154 5796 210.5Q5833 267 5833 336H5797Q5796 276 5764 228Q5732 180 5677.5 153Q5623 126 5555 126Q5489 126 5433 159Q5377 192 5344 248Q5311 304 5311 370V534Q5311 600 5344.5 656Q5378 712 5434.5 745Q5491 778 5557 778ZM6052 282Q6052 224 6082.5 180Q6113 136 6168.5 112Q6224 88 6297 88Q6367 88 6425.5 117.5Q6484 147 6518 200Q6552 253 6552 321H6515Q6515 262 6486 217Q6457 172 6407 147.5Q6357 123 6296 123Q6242 123 6195 140Q6148 157 6118.5 192Q6089 227 6089 280Q6089 328 6117 356.5Q6145 385 6190 400Q6235 415 6316 432Q6398 449 6443.5 464.5Q6489 480 6520.5 516Q6552 552 6552 617Q6552 682 6517.5 726.5Q6483 771 6426 793Q6369 815 6302 815Q6219 815 6156 784Q6093 753 6059.5 696.5Q6026 640 6026 567H6063Q6063 631 6091.5 679Q6120 727 6174 753.5Q6228 780 6302 780Q6394 780 6454.5 736Q6515 692 6515 616Q6515 564 6489 536Q6463 508 6423.5 495.5Q6384 483 6305 467Q6220 450 6166.5 429.5Q6113 409 6082.5 373.5Q6052 338 6052 282ZM6792 282Q6792 224 6822.5 180Q6853 136 6908.5 112Q6964 88 7037 88Q7107 88 7165.5 117.5Q7224 147 7258 200Q7292 253 7292 321H7255Q7255 262 7226 217Q7197 172 7147 147.5Q7097 123 7036 123Q6982 123 6935 140Q6888 157 6858.5 192Q6829 227 6829 280Q6829 328 6857 356.5Q6885 385 6930 400Q6975 415 7056 432Q7138 449 7183.5 464.5Q7229 480 7260.5 516Q7292 552 7292 617Q7292 682 7257.5 726.5Q7223 771 7166 793Q7109 815 7042 815Q6959 815 6896 784Q6833 753 6799.5 696.5Q6766 640 6766 567H6803Q6803 631 6831.5 679Q6860 727 6914 753.5Q6968 780 7042 780Q7134 780 7194.5 736Q7255 692 7255 616Q7255 564 7229 536Q7203 508 7163.5 495.5Q7124 483 7045 467Q6960 450 6906.5 429.5Q6853 409 6822.5 373.5Q6792 338 6792 282Z"/>
|
|
10
|
+
<path class="d" d="M-56.0,800.0 L-15.3,800.0 L288.9,140.7 L268.5,96.5Z"/>
|
|
11
|
+
<path class="d" d="M4810 367Q4848 367 4874.5 393.5Q4901 420 4901 457Q4901 494 4874.5 521Q4848 548 4810 548Q4773 548 4746 521Q4719 494 4719 457Q4719 420 4745.5 393.5Q4772 367 4810 367Z"/>
|
|
12
|
+
</svg>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="-128 -82 7590 1067" width="1898" height="267" role="img" aria-label="Actual·css"><title>Actual·css</title>
|
|
2
|
+
<style>
|
|
3
|
+
.t { fill: #F4EFFA; }
|
|
4
|
+
.d { fill: #B292DB; }
|
|
5
|
+
@media (prefers-color-scheme: dark) { .t { fill: #F4EFFA; } .d { fill: #B292DB; } }
|
|
6
|
+
</style>
|
|
7
|
+
<path class="t" d="M698 800H42L370 89ZM100 763H640L370 177ZM1117 778Q1185 778 1240 751Q1295 724 1326.5 676Q1358 628 1359 568H1395Q1395 637 1358.5 693.5Q1322 750 1258.5 782.5Q1195 815 1117 815Q1041 815 976 777Q911 739 873 674.5Q835 610 835 534V370Q835 294 872.5 229.5Q910 165 974.5 127Q1039 89 1115 89Q1192 89 1255.5 121.5Q1319 154 1356 210.5Q1393 267 1393 336H1357Q1356 276 1324 228Q1292 180 1237.5 153Q1183 126 1115 126Q1049 126 993 159Q937 192 904 248Q871 304 871 370V534Q871 600 904.5 656Q938 712 994.5 745Q1051 778 1117 778ZM2131 104V141H1868V800H1832V141H1569V104ZM2309 104H2346V534Q2346 600 2379 656Q2412 712 2468 745Q2524 778 2590 778Q2656 778 2712 745Q2768 712 2801 656Q2834 600 2834 534V104H2871V534Q2871 610 2833 674.5Q2795 739 2730.5 777Q2666 815 2590 815Q2514 815 2449.5 777Q2385 739 2347 674.5Q2309 610 2309 534ZM3311 104H3350L3636 800H3596L3502 570H3159L3064 800H3025ZM3174 534H3487L3330 152ZM3855 800V104H3892V763H4377V800ZM5557 778Q5625 778 5680 751Q5735 724 5766.5 676Q5798 628 5799 568H5835Q5835 637 5798.5 693.5Q5762 750 5698.5 782.5Q5635 815 5557 815Q5481 815 5416 777Q5351 739 5313 674.5Q5275 610 5275 534V370Q5275 294 5312.5 229.5Q5350 165 5414.5 127Q5479 89 5555 89Q5632 89 5695.5 121.5Q5759 154 5796 210.5Q5833 267 5833 336H5797Q5796 276 5764 228Q5732 180 5677.5 153Q5623 126 5555 126Q5489 126 5433 159Q5377 192 5344 248Q5311 304 5311 370V534Q5311 600 5344.5 656Q5378 712 5434.5 745Q5491 778 5557 778ZM6052 282Q6052 224 6082.5 180Q6113 136 6168.5 112Q6224 88 6297 88Q6367 88 6425.5 117.5Q6484 147 6518 200Q6552 253 6552 321H6515Q6515 262 6486 217Q6457 172 6407 147.5Q6357 123 6296 123Q6242 123 6195 140Q6148 157 6118.5 192Q6089 227 6089 280Q6089 328 6117 356.5Q6145 385 6190 400Q6235 415 6316 432Q6398 449 6443.5 464.5Q6489 480 6520.5 516Q6552 552 6552 617Q6552 682 6517.5 726.5Q6483 771 6426 793Q6369 815 6302 815Q6219 815 6156 784Q6093 753 6059.5 696.5Q6026 640 6026 567H6063Q6063 631 6091.5 679Q6120 727 6174 753.5Q6228 780 6302 780Q6394 780 6454.5 736Q6515 692 6515 616Q6515 564 6489 536Q6463 508 6423.5 495.5Q6384 483 6305 467Q6220 450 6166.5 429.5Q6113 409 6082.5 373.5Q6052 338 6052 282ZM6792 282Q6792 224 6822.5 180Q6853 136 6908.5 112Q6964 88 7037 88Q7107 88 7165.5 117.5Q7224 147 7258 200Q7292 253 7292 321H7255Q7255 262 7226 217Q7197 172 7147 147.5Q7097 123 7036 123Q6982 123 6935 140Q6888 157 6858.5 192Q6829 227 6829 280Q6829 328 6857 356.5Q6885 385 6930 400Q6975 415 7056 432Q7138 449 7183.5 464.5Q7229 480 7260.5 516Q7292 552 7292 617Q7292 682 7257.5 726.5Q7223 771 7166 793Q7109 815 7042 815Q6959 815 6896 784Q6833 753 6799.5 696.5Q6766 640 6766 567H6803Q6803 631 6831.5 679Q6860 727 6914 753.5Q6968 780 7042 780Q7134 780 7194.5 736Q7255 692 7255 616Q7255 564 7229 536Q7203 508 7163.5 495.5Q7124 483 7045 467Q6960 450 6906.5 429.5Q6853 409 6822.5 373.5Q6792 338 6792 282Z"/>
|
|
8
|
+
<path class="d" d="M4810 367Q4848 367 4874.5 393.5Q4901 420 4901 457Q4901 494 4874.5 521Q4848 548 4810 548Q4773 548 4746 521Q4719 494 4719 457Q4719 420 4745.5 393.5Q4772 367 4810 367Z"/>
|
|
9
|
+
</svg>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="-128 -82 7590 1067" width="1898" height="267" role="img" aria-label="Actual·css"><title>Actual·css</title>
|
|
2
|
+
<style>
|
|
3
|
+
.t { fill: #52396F; }
|
|
4
|
+
.d { fill: #9B7BCB; }
|
|
5
|
+
@media (prefers-color-scheme: dark) { .t { fill: #52396F; } .d { fill: #9B7BCB; } }
|
|
6
|
+
</style>
|
|
7
|
+
<path class="t" d="M698 800H42L370 89ZM100 763H640L370 177ZM1117 778Q1185 778 1240 751Q1295 724 1326.5 676Q1358 628 1359 568H1395Q1395 637 1358.5 693.5Q1322 750 1258.5 782.5Q1195 815 1117 815Q1041 815 976 777Q911 739 873 674.5Q835 610 835 534V370Q835 294 872.5 229.5Q910 165 974.5 127Q1039 89 1115 89Q1192 89 1255.5 121.5Q1319 154 1356 210.5Q1393 267 1393 336H1357Q1356 276 1324 228Q1292 180 1237.5 153Q1183 126 1115 126Q1049 126 993 159Q937 192 904 248Q871 304 871 370V534Q871 600 904.5 656Q938 712 994.5 745Q1051 778 1117 778ZM2131 104V141H1868V800H1832V141H1569V104ZM2309 104H2346V534Q2346 600 2379 656Q2412 712 2468 745Q2524 778 2590 778Q2656 778 2712 745Q2768 712 2801 656Q2834 600 2834 534V104H2871V534Q2871 610 2833 674.5Q2795 739 2730.5 777Q2666 815 2590 815Q2514 815 2449.5 777Q2385 739 2347 674.5Q2309 610 2309 534ZM3311 104H3350L3636 800H3596L3502 570H3159L3064 800H3025ZM3174 534H3487L3330 152ZM3855 800V104H3892V763H4377V800ZM5557 778Q5625 778 5680 751Q5735 724 5766.5 676Q5798 628 5799 568H5835Q5835 637 5798.5 693.5Q5762 750 5698.5 782.5Q5635 815 5557 815Q5481 815 5416 777Q5351 739 5313 674.5Q5275 610 5275 534V370Q5275 294 5312.5 229.5Q5350 165 5414.5 127Q5479 89 5555 89Q5632 89 5695.5 121.5Q5759 154 5796 210.5Q5833 267 5833 336H5797Q5796 276 5764 228Q5732 180 5677.5 153Q5623 126 5555 126Q5489 126 5433 159Q5377 192 5344 248Q5311 304 5311 370V534Q5311 600 5344.5 656Q5378 712 5434.5 745Q5491 778 5557 778ZM6052 282Q6052 224 6082.5 180Q6113 136 6168.5 112Q6224 88 6297 88Q6367 88 6425.5 117.5Q6484 147 6518 200Q6552 253 6552 321H6515Q6515 262 6486 217Q6457 172 6407 147.5Q6357 123 6296 123Q6242 123 6195 140Q6148 157 6118.5 192Q6089 227 6089 280Q6089 328 6117 356.5Q6145 385 6190 400Q6235 415 6316 432Q6398 449 6443.5 464.5Q6489 480 6520.5 516Q6552 552 6552 617Q6552 682 6517.5 726.5Q6483 771 6426 793Q6369 815 6302 815Q6219 815 6156 784Q6093 753 6059.5 696.5Q6026 640 6026 567H6063Q6063 631 6091.5 679Q6120 727 6174 753.5Q6228 780 6302 780Q6394 780 6454.5 736Q6515 692 6515 616Q6515 564 6489 536Q6463 508 6423.5 495.5Q6384 483 6305 467Q6220 450 6166.5 429.5Q6113 409 6082.5 373.5Q6052 338 6052 282ZM6792 282Q6792 224 6822.5 180Q6853 136 6908.5 112Q6964 88 7037 88Q7107 88 7165.5 117.5Q7224 147 7258 200Q7292 253 7292 321H7255Q7255 262 7226 217Q7197 172 7147 147.5Q7097 123 7036 123Q6982 123 6935 140Q6888 157 6858.5 192Q6829 227 6829 280Q6829 328 6857 356.5Q6885 385 6930 400Q6975 415 7056 432Q7138 449 7183.5 464.5Q7229 480 7260.5 516Q7292 552 7292 617Q7292 682 7257.5 726.5Q7223 771 7166 793Q7109 815 7042 815Q6959 815 6896 784Q6833 753 6799.5 696.5Q6766 640 6766 567H6803Q6803 631 6831.5 679Q6860 727 6914 753.5Q6968 780 7042 780Q7134 780 7194.5 736Q7255 692 7255 616Q7255 564 7229 536Q7203 508 7163.5 495.5Q7124 483 7045 467Q6960 450 6906.5 429.5Q6853 409 6822.5 373.5Q6792 338 6792 282Z"/>
|
|
8
|
+
<path class="d" d="M4810 367Q4848 367 4874.5 393.5Q4901 420 4901 457Q4901 494 4874.5 521Q4848 548 4810 548Q4773 548 4746 521Q4719 494 4719 457Q4719 420 4745.5 393.5Q4772 367 4810 367Z"/>
|
|
9
|
+
</svg>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="-128 -82 7590 1067" width="1898" height="267" role="img" aria-label="Actual·css"><title>Actual·css</title>
|
|
2
|
+
<!-- Docs adaptation: fills follow the site theme via --text/--primary, with the
|
|
3
|
+
brand hex as fallback for standalone rendering. The OS-scheme override
|
|
4
|
+
is dropped on purpose: the docs theme picker owns the scheme. -->
|
|
5
|
+
<style>
|
|
6
|
+
.t { fill: var(--text, #52396F); }
|
|
7
|
+
.d { fill: var(--primary, #9B7BCB); }
|
|
8
|
+
</style>
|
|
9
|
+
<path class="t" d="M698 800H42L370 89ZM100 763H640L370 177ZM1117 778Q1185 778 1240 751Q1295 724 1326.5 676Q1358 628 1359 568H1395Q1395 637 1358.5 693.5Q1322 750 1258.5 782.5Q1195 815 1117 815Q1041 815 976 777Q911 739 873 674.5Q835 610 835 534V370Q835 294 872.5 229.5Q910 165 974.5 127Q1039 89 1115 89Q1192 89 1255.5 121.5Q1319 154 1356 210.5Q1393 267 1393 336H1357Q1356 276 1324 228Q1292 180 1237.5 153Q1183 126 1115 126Q1049 126 993 159Q937 192 904 248Q871 304 871 370V534Q871 600 904.5 656Q938 712 994.5 745Q1051 778 1117 778ZM2131 104V141H1868V800H1832V141H1569V104ZM2309 104H2346V534Q2346 600 2379 656Q2412 712 2468 745Q2524 778 2590 778Q2656 778 2712 745Q2768 712 2801 656Q2834 600 2834 534V104H2871V534Q2871 610 2833 674.5Q2795 739 2730.5 777Q2666 815 2590 815Q2514 815 2449.5 777Q2385 739 2347 674.5Q2309 610 2309 534ZM3311 104H3350L3636 800H3596L3502 570H3159L3064 800H3025ZM3174 534H3487L3330 152ZM3855 800V104H3892V763H4377V800ZM5557 778Q5625 778 5680 751Q5735 724 5766.5 676Q5798 628 5799 568H5835Q5835 637 5798.5 693.5Q5762 750 5698.5 782.5Q5635 815 5557 815Q5481 815 5416 777Q5351 739 5313 674.5Q5275 610 5275 534V370Q5275 294 5312.5 229.5Q5350 165 5414.5 127Q5479 89 5555 89Q5632 89 5695.5 121.5Q5759 154 5796 210.5Q5833 267 5833 336H5797Q5796 276 5764 228Q5732 180 5677.5 153Q5623 126 5555 126Q5489 126 5433 159Q5377 192 5344 248Q5311 304 5311 370V534Q5311 600 5344.5 656Q5378 712 5434.5 745Q5491 778 5557 778ZM6052 282Q6052 224 6082.5 180Q6113 136 6168.5 112Q6224 88 6297 88Q6367 88 6425.5 117.5Q6484 147 6518 200Q6552 253 6552 321H6515Q6515 262 6486 217Q6457 172 6407 147.5Q6357 123 6296 123Q6242 123 6195 140Q6148 157 6118.5 192Q6089 227 6089 280Q6089 328 6117 356.5Q6145 385 6190 400Q6235 415 6316 432Q6398 449 6443.5 464.5Q6489 480 6520.5 516Q6552 552 6552 617Q6552 682 6517.5 726.5Q6483 771 6426 793Q6369 815 6302 815Q6219 815 6156 784Q6093 753 6059.5 696.5Q6026 640 6026 567H6063Q6063 631 6091.5 679Q6120 727 6174 753.5Q6228 780 6302 780Q6394 780 6454.5 736Q6515 692 6515 616Q6515 564 6489 536Q6463 508 6423.5 495.5Q6384 483 6305 467Q6220 450 6166.5 429.5Q6113 409 6082.5 373.5Q6052 338 6052 282ZM6792 282Q6792 224 6822.5 180Q6853 136 6908.5 112Q6964 88 7037 88Q7107 88 7165.5 117.5Q7224 147 7258 200Q7292 253 7292 321H7255Q7255 262 7226 217Q7197 172 7147 147.5Q7097 123 7036 123Q6982 123 6935 140Q6888 157 6858.5 192Q6829 227 6829 280Q6829 328 6857 356.5Q6885 385 6930 400Q6975 415 7056 432Q7138 449 7183.5 464.5Q7229 480 7260.5 516Q7292 552 7292 617Q7292 682 7257.5 726.5Q7223 771 7166 793Q7109 815 7042 815Q6959 815 6896 784Q6833 753 6799.5 696.5Q6766 640 6766 567H6803Q6803 631 6831.5 679Q6860 727 6914 753.5Q6968 780 7042 780Q7134 780 7194.5 736Q7255 692 7255 616Q7255 564 7229 536Q7203 508 7163.5 495.5Q7124 483 7045 467Q6960 450 6906.5 429.5Q6853 409 6822.5 373.5Q6792 338 6792 282Z"/>
|
|
10
|
+
<path class="d" d="M4810 367Q4848 367 4874.5 393.5Q4901 420 4901 457Q4901 494 4874.5 521Q4848 548 4810 548Q4773 548 4746 521Q4719 494 4719 457Q4719 420 4745.5 393.5Q4772 367 4810 367Z"/>
|
|
11
|
+
</svg>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="512" height="512"><title>Actual</title>
|
|
2
|
+
<!-- Docs adaptation: fills follow the site theme via --text/--primary, with the
|
|
3
|
+
brand hex as fallback for standalone rendering. The OS-scheme override
|
|
4
|
+
is dropped on purpose: the docs theme picker owns the scheme. -->
|
|
5
|
+
<style>
|
|
6
|
+
.ring { fill: var(--text, #52396F); }
|
|
7
|
+
.bar { fill: var(--primary, #9B7BCB); }
|
|
8
|
+
</style>
|
|
9
|
+
<path class="ring" fill-rule="evenodd" d="M124.7,451.9 L475.4,451.9 L300.1,71.9ZM406.6,407.9 L193.5,407.9 L300.1,177.0Z"/>
|
|
10
|
+
<path class="bar" d="M36.6,451.9 L85.1,451.9 L241.7,112.6 L217.4,60.1Z"/>
|
|
11
|
+
</svg>
|
package/docs/navigation.json
CHANGED
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
"progressive-enhancement",
|
|
11
11
|
"bootstrap",
|
|
12
12
|
"tailwind",
|
|
13
|
-
"design-tools"
|
|
13
|
+
"design-tools",
|
|
14
|
+
"upgrading"
|
|
14
15
|
]
|
|
15
16
|
},
|
|
16
17
|
{
|
|
@@ -82,6 +83,7 @@
|
|
|
82
83
|
"overview",
|
|
83
84
|
"controls",
|
|
84
85
|
"combobox",
|
|
86
|
+
"date-picker",
|
|
85
87
|
"rich-text",
|
|
86
88
|
"labels",
|
|
87
89
|
"floating-field",
|
|
@@ -104,7 +106,6 @@
|
|
|
104
106
|
"slug": "patterns",
|
|
105
107
|
"pages": [
|
|
106
108
|
"overview",
|
|
107
|
-
"actions",
|
|
108
109
|
"navigation-list",
|
|
109
110
|
"icon-input",
|
|
110
111
|
"icon-slot",
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
- Supports longer text and lists.
|
|
7
7
|
- Links inherit alert color by default.
|
|
8
8
|
- Alerts are soft by default. Use `.surface` for neutral chrome with the intent only in the ink, `.solid` or `.outline` when the message needs stronger or quieter emphasis.
|
|
9
|
-
- Use `<menu class="
|
|
9
|
+
- Use `<menu class="cluster">` for alert action lists.
|
|
10
10
|
- Use `role="alert"` only when the alert is injected dynamically and should be announced.
|
|
11
11
|
- Not a toast.
|
|
12
12
|
- Could have simple or complex html content.
|
|
@@ -90,7 +90,7 @@ intent treatment when the color itself carries the meaning.
|
|
|
90
90
|
<p>Check your billing details or try another card.</p>
|
|
91
91
|
</div>
|
|
92
92
|
|
|
93
|
-
<menu class="
|
|
93
|
+
<menu class="cluster">
|
|
94
94
|
<li><a class="btn danger sm" href="/billing">Update billing</a></li>
|
|
95
95
|
<li><a href="/support">Contact support</a></li>
|
|
96
96
|
</menu>
|
|
@@ -128,14 +128,6 @@ center.
|
|
|
128
128
|
I'm a surface alert — theme chrome, intent in the ink
|
|
129
129
|
</div>
|
|
130
130
|
|
|
131
|
-
<div class="alert danger compact" role="alert">
|
|
132
|
-
I'm an error in a compact context
|
|
133
|
-
</div>
|
|
134
|
-
|
|
135
|
-
<div class="alert danger spacious" role="alert">
|
|
136
|
-
I'm an error in a spacious context
|
|
137
|
-
</div>
|
|
138
|
-
|
|
139
131
|
<div class="alert danger outline" role="alert">
|
|
140
132
|
I'm an outline error <a href="#">with a link</a>
|
|
141
133
|
</div>
|
|
@@ -126,15 +126,9 @@ Regular
|
|
|
126
126
|
<span class="badge success lg">Large</span>
|
|
127
127
|
```
|
|
128
128
|
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
```html demo
|
|
134
|
-
<span class="compact"><span class="badge success">Compact</span></span>
|
|
135
|
-
<span><span class="badge success">Default</span></span>
|
|
136
|
-
<span class="spacious"><span class="badge success">Spacious</span></span>
|
|
137
|
-
```
|
|
129
|
+
A badge keeps its size inside a `.compact` or `.spacious` context: its
|
|
130
|
+
geometry is intrinsic to its label. Use `.sm` / `.lg` for a smaller or larger
|
|
131
|
+
badge.
|
|
138
132
|
|
|
139
133
|
## With an icon
|
|
140
134
|
|
|
@@ -39,7 +39,7 @@ gap.
|
|
|
39
39
|
|
|
40
40
|
<p>Using the right HTML tags improves both SEO and accessibility. Lean on landmarks and live lists.</p>
|
|
41
41
|
|
|
42
|
-
<ul class="cluster
|
|
42
|
+
<ul class="cluster tight" aria-label="Tags">
|
|
43
43
|
<li><span class="badge primary soft secondary">HTML</span></li>
|
|
44
44
|
<li><span class="badge soft primary">Accessibility</span></li>
|
|
45
45
|
<li><span class="badge outline">5 min read</span></li>
|
|
@@ -53,6 +53,34 @@ gap.
|
|
|
53
53
|
</div>
|
|
54
54
|
```
|
|
55
55
|
|
|
56
|
+
## Slot rows
|
|
57
|
+
|
|
58
|
+
A direct `<header>` or `<footer>` is a wrapping split row by default: title and
|
|
59
|
+
badge, date and action, one left one right. A primitive, role or utility on the
|
|
60
|
+
slot replaces that row — `.media` for an avatar beside a title, `.cluster` for a
|
|
61
|
+
start-aligned group, `cluster form-actions` for a form's action row,
|
|
62
|
+
`.justify-content-end` to push actions right. The footer stays anchored to the
|
|
63
|
+
bottom either way.
|
|
64
|
+
|
|
65
|
+
```html demo
|
|
66
|
+
<div style="max-inline-size: 32rem">
|
|
67
|
+
<article class="card">
|
|
68
|
+
<header class="media">
|
|
69
|
+
<span class="avatar"><abbr>AM</abbr></span>
|
|
70
|
+
<hgroup>
|
|
71
|
+
<h3>Ada Meridian</h3>
|
|
72
|
+
<p class="muted">Design systems</p>
|
|
73
|
+
</hgroup>
|
|
74
|
+
</header>
|
|
75
|
+
<p>Reviews every token change before it ships.</p>
|
|
76
|
+
<footer class="cluster justify-content-end">
|
|
77
|
+
<button type="button" class="btn ghost">Dismiss</button>
|
|
78
|
+
<button type="button" class="btn primary">Follow</button>
|
|
79
|
+
</footer>
|
|
80
|
+
</article>
|
|
81
|
+
</div>
|
|
82
|
+
```
|
|
83
|
+
|
|
56
84
|
## Bleed
|
|
57
85
|
|
|
58
86
|
Use `.bleed` on a direct child to bring an image or band to the card edge. See
|
|
@@ -155,4 +183,5 @@ treatments on either side of it.
|
|
|
155
183
|
- `--card-radius` — corner radius.
|
|
156
184
|
- `--card-max-inline-size` — maximum width.
|
|
157
185
|
- `--card-pad` — inner padding, relayed to direct children for `.bleed`. `.compact` lowers it.
|
|
158
|
-
- `--card-gap` — space between direct children of a bare card. A composed layout primitive owns its own gap instead.
|
|
186
|
+
- `--card-gap` — space between direct children of a bare card. `.compact` lowers it; a parent's `--gap` and an inherited density do not reach it. A composed layout primitive owns its own gap instead.
|
|
187
|
+
- `--items-align` — cross-axis alignment of the slot rows, set by the `.items-*` helpers on the card or the slot.
|
|
@@ -6,13 +6,12 @@
|
|
|
6
6
|
|
|
7
7
|
## Class reference
|
|
8
8
|
|
|
9
|
-
| Class
|
|
10
|
-
|
|
|
11
|
-
| `.modal`
|
|
12
|
-
| `.scrollable`
|
|
13
|
-
| `.dialog-
|
|
14
|
-
| `.
|
|
15
|
-
| `.close` | Composition | Icon-only close button, at the top end. |
|
|
9
|
+
| Class | Kind | Description |
|
|
10
|
+
| -------------- | ----------- | ---------------------------------------------- |
|
|
11
|
+
| `.modal` | Component | Centered surface on the native `<dialog>`. |
|
|
12
|
+
| `.scrollable` | Variant | Header and footer stay while the body scrolls. |
|
|
13
|
+
| `.dialog-icon` | Component | Circular intent-aware icon well. |
|
|
14
|
+
| `.close` | Composition | Icon-only close button, at the top end. |
|
|
16
15
|
|
|
17
16
|
## Anatomy
|
|
18
17
|
|
|
@@ -26,8 +25,10 @@ controls second. The title has the close control's minimum height; its leading
|
|
|
26
25
|
icon and every trailing control share the same center axis. A wrapped title
|
|
27
26
|
simply makes the row taller.
|
|
28
27
|
|
|
29
|
-
A direct `dialog > header` is dialog chrome and forms a distinct header band
|
|
30
|
-
|
|
28
|
+
A direct `dialog > header` is dialog chrome and forms a distinct header band,
|
|
29
|
+
painted `--surface-subtle`. Change the fill with a surface utility on the header
|
|
30
|
+
(`<header class="background-raised">`). Put an ordinary content heading inside
|
|
31
|
+
the padded `form` or `.stack` instead.
|
|
31
32
|
|
|
32
33
|
Keep a corner [`.close`](close.md) as a direct child of the dialog and put the
|
|
33
34
|
title in the wrapper's direct `<header>`. The button then stays outside the
|
|
@@ -42,9 +43,35 @@ The corner close overlays the panel edge, so a body tall enough to scroll would
|
|
|
42
43
|
run its scrollbar under the button. Give such a dialog the `scrollable` anatomy:
|
|
43
44
|
the close then sits over the fixed header and the scrollbar starts below it.
|
|
44
45
|
|
|
45
|
-
Add `.bleed` to that header when it should form a
|
|
46
|
-
the dialog edges, keeps the modal's
|
|
47
|
-
such as
|
|
46
|
+
Add `.bleed` to that header, or to the wrapper's footer, when it should form a
|
|
47
|
+
full-width band. It reaches the dialog edges and corners, keeps the modal's
|
|
48
|
+
inner padding, and takes a surface utility such as `.background-subtle`.
|
|
49
|
+
|
|
50
|
+
The wrapper's `<footer>` is a structural slot: it stays fixed under
|
|
51
|
+
`.scrollable` but has no layout of its own. Compose the action row in markup —
|
|
52
|
+
`<footer class="cluster justify-content-end">` for trailing actions,
|
|
53
|
+
`.justify-content-space-between` for a split pair.
|
|
54
|
+
|
|
55
|
+
### Where each region lives
|
|
56
|
+
|
|
57
|
+
Two anatomies are legitimate. Pick one; each owns its scroll, footer, and close
|
|
58
|
+
placement.
|
|
59
|
+
|
|
60
|
+
**Wrapper header** — a `<header>` inside the `form`/`.stack` body. The wrapper
|
|
61
|
+
owns padding, rhythm, and overflow. With `.scrollable` the header and footer are
|
|
62
|
+
fixed rows and the content between them scrolls. The `.close` stays a direct
|
|
63
|
+
child of the dialog and the header reserves its inline room.
|
|
64
|
+
|
|
65
|
+
**External header** — a direct `dialog > header`, before the body wrapper. The
|
|
66
|
+
header is dialog chrome outside the scroll container, so it never scrolls. The
|
|
67
|
+
footer stays inside the wrapper and is the trailing fixed row under
|
|
68
|
+
`.scrollable`. Wrap the `.close` in the header's trailing `.cluster` to keep it
|
|
69
|
+
in flow; a `.close` that is a direct child of the header is still the absolute
|
|
70
|
+
corner overlay, and the header reserves its room.
|
|
71
|
+
|
|
72
|
+
The `.scrollable` row template follows the regions the wrapper actually holds,
|
|
73
|
+
so a modal without a header, without a footer, or with an external header all
|
|
74
|
+
keep the footer reachable and the body scrollable.
|
|
48
75
|
|
|
49
76
|
## Usage
|
|
50
77
|
|
|
@@ -97,7 +124,7 @@ runtime, backdrop clicks give a small static feedback instead of closing.
|
|
|
97
124
|
<p>The project, saved reports, and connected automations will be removed permanently.</p>
|
|
98
125
|
</div>
|
|
99
126
|
|
|
100
|
-
<footer>
|
|
127
|
+
<footer class="cluster justify-content-end">
|
|
101
128
|
<button class="btn outline" value="cancel">Cancel</button>
|
|
102
129
|
|
|
103
130
|
<button class="btn danger"
|
|
@@ -109,12 +136,19 @@ runtime, backdrop clicks give a small static feedback instead of closing.
|
|
|
109
136
|
</dialog>
|
|
110
137
|
```
|
|
111
138
|
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
139
|
+
### Confirmation with an icon and an action band
|
|
140
|
+
|
|
141
|
+
For a compact confirmation with a leading status icon, put a `.dialog-icon` and
|
|
142
|
+
the text column in a `.media` row. The first heading of that column centers on
|
|
143
|
+
the icon; following copy stays in the same column. The icon well accepts the
|
|
144
|
+
shared intent and emphasis classes: `dialog-icon danger soft` is the tinted red
|
|
145
|
+
circle.
|
|
146
|
+
|
|
147
|
+
The action band is the footer composed with existing primitives: `.bleed`
|
|
148
|
+
reaches the panel edges and corners, `.background-subtle` paints it, and
|
|
149
|
+
`.cluster.justify-content-space-between` splits the decision pair. Keep the
|
|
150
|
+
cancel-style action first, so it holds the leading edge and never sits next to
|
|
151
|
+
the committing one.
|
|
118
152
|
|
|
119
153
|
```html demo
|
|
120
154
|
<button class="btn danger"
|
|
@@ -126,7 +160,7 @@ next to the committing one.
|
|
|
126
160
|
Deactivate account
|
|
127
161
|
</button>
|
|
128
162
|
|
|
129
|
-
<dialog class="modal
|
|
163
|
+
<dialog class="modal"
|
|
130
164
|
id="deactivate-dialog"
|
|
131
165
|
closedby="none"
|
|
132
166
|
style="--modal-size: 40rem">
|
|
@@ -136,13 +170,13 @@ next to the committing one.
|
|
|
136
170
|
<i class="ti ti-alert-triangle"></i>
|
|
137
171
|
</span>
|
|
138
172
|
|
|
139
|
-
<header>
|
|
173
|
+
<header class="stack">
|
|
140
174
|
<h3>Deactivate account</h3>
|
|
141
175
|
<p class="muted">Are you sure you want to deactivate your account? All of your data will be permanently removed. This action cannot be undone.</p>
|
|
142
176
|
</header>
|
|
143
177
|
</div>
|
|
144
178
|
|
|
145
|
-
<footer>
|
|
179
|
+
<footer class="bleed background-subtle cluster justify-content-space-between">
|
|
146
180
|
<button class="btn outline" value="cancel">Cancel</button>
|
|
147
181
|
<button class="btn danger" value="deactivate">Deactivate</button>
|
|
148
182
|
</footer>
|
|
@@ -152,8 +186,7 @@ next to the committing one.
|
|
|
152
186
|
|
|
153
187
|
For a trailing illustration, use a direct `<header>` as the message region and
|
|
154
188
|
compose it as a non-wrapping split cluster. `.grow` keeps the text column
|
|
155
|
-
flexible while `.dialog-icon` stays at the inline end.
|
|
156
|
-
pads either this header or the leading-icon `.media` shape above.
|
|
189
|
+
flexible while `.dialog-icon` stays at the inline end.
|
|
157
190
|
|
|
158
191
|
Use the same anatomy in a `.card` instead when the surface belongs in page
|
|
159
192
|
content and does not need modal focus or a backdrop.
|
|
@@ -168,7 +201,7 @@ content and does not need modal focus or a backdrop.
|
|
|
168
201
|
Customize workspace
|
|
169
202
|
</button>
|
|
170
203
|
|
|
171
|
-
<dialog class="modal
|
|
204
|
+
<dialog class="modal"
|
|
172
205
|
id="customize-dialog"
|
|
173
206
|
closedby="none"
|
|
174
207
|
aria-labelledby="customize-dialog-title">
|
|
@@ -185,9 +218,9 @@ content and does not need modal focus or a backdrop.
|
|
|
185
218
|
</span>
|
|
186
219
|
</header>
|
|
187
220
|
|
|
188
|
-
<footer>
|
|
189
|
-
<button class="btn primary" value="customize">Customize</button>
|
|
221
|
+
<footer class="bleed background-subtle cluster justify-content-end">
|
|
190
222
|
<button class="btn ghost" value="later">Later</button>
|
|
223
|
+
<button class="btn primary" value="customize">Customize</button>
|
|
191
224
|
</footer>
|
|
192
225
|
</form>
|
|
193
226
|
</dialog>
|
|
@@ -289,7 +322,7 @@ the dialog title itself is not an alert.
|
|
|
289
322
|
|
|
290
323
|
<p>Confirm these settings to finish setting up the workspace.</p>
|
|
291
324
|
|
|
292
|
-
<footer>
|
|
325
|
+
<footer class="cluster justify-content-end">
|
|
293
326
|
<button class="btn primary inline-size-full" value="continue">Continue</button>
|
|
294
327
|
</footer>
|
|
295
328
|
</form>
|
|
@@ -310,6 +343,9 @@ keyboard-focusable so it can be scrolled without a pointer — it takes a focus
|
|
|
310
343
|
ring like any other focusable element, and it can claim initial focus when
|
|
311
344
|
nothing focusable precedes it. Mark the control you want focused `autofocus`.
|
|
312
345
|
|
|
346
|
+
Each non-header/footer child region is its own scrollport, so wrap the body in a
|
|
347
|
+
single element (`<div class="stack">`) when there should be one scrollbar.
|
|
348
|
+
|
|
313
349
|
```html demo
|
|
314
350
|
<button class="btn"
|
|
315
351
|
type="button"
|
|
@@ -341,7 +377,7 @@ nothing focusable precedes it. Mark the control you want focused `autofocus`.
|
|
|
341
377
|
<p>Section 7. Continued use confirms acceptance of the current terms.</p>
|
|
342
378
|
</div>
|
|
343
379
|
|
|
344
|
-
<footer>
|
|
380
|
+
<footer class="cluster justify-content-end">
|
|
345
381
|
<button class="btn outline" value="cancel">Cancel</button>
|
|
346
382
|
|
|
347
383
|
<button class="btn primary" value="accept">
|
|
@@ -352,6 +388,55 @@ nothing focusable precedes it. Mark the control you want focused `autofocus`.
|
|
|
352
388
|
</dialog>
|
|
353
389
|
```
|
|
354
390
|
|
|
391
|
+
An external header follows the same contract from the other side: the header is
|
|
392
|
+
chrome outside the wrapper, the footer stays in the wrapper, and the content
|
|
393
|
+
between them scrolls.
|
|
394
|
+
|
|
395
|
+
```html demo
|
|
396
|
+
<button class="btn"
|
|
397
|
+
type="button"
|
|
398
|
+
commandfor="external-scroll-dialog"
|
|
399
|
+
command="show-modal"
|
|
400
|
+
aria-haspopup="dialog"
|
|
401
|
+
aria-controls="external-scroll-dialog">
|
|
402
|
+
Open external-header modal
|
|
403
|
+
</button>
|
|
404
|
+
|
|
405
|
+
<dialog class="modal scrollable"
|
|
406
|
+
id="external-scroll-dialog"
|
|
407
|
+
closedby="any"
|
|
408
|
+
aria-labelledby="external-scroll-title">
|
|
409
|
+
<header>
|
|
410
|
+
<h3 id="external-scroll-title">Release notes</h3>
|
|
411
|
+
|
|
412
|
+
<div class="cluster">
|
|
413
|
+
<button class="close"
|
|
414
|
+
type="button"
|
|
415
|
+
commandfor="external-scroll-dialog"
|
|
416
|
+
command="request-close"
|
|
417
|
+
aria-controls="external-scroll-dialog"
|
|
418
|
+
aria-label="Close dialog"></button>
|
|
419
|
+
</div>
|
|
420
|
+
</header>
|
|
421
|
+
|
|
422
|
+
<form method="dialog" class="stack">
|
|
423
|
+
<div class="stack">
|
|
424
|
+
<p>Section 1. The service stores project settings, interface preferences, and theme choices.</p>
|
|
425
|
+
<p>Section 2. Administrators can invite users and review access periodically.</p>
|
|
426
|
+
<p>Section 3. Billing changes may affect future invoices.</p>
|
|
427
|
+
<p>Section 4. Export tools are provided for common formats.</p>
|
|
428
|
+
<p>Section 5. Support requests should include browser and account context.</p>
|
|
429
|
+
<p>Section 6. Continued use confirms acceptance of the current terms.</p>
|
|
430
|
+
</div>
|
|
431
|
+
|
|
432
|
+
<footer class="cluster justify-content-end">
|
|
433
|
+
<button class="btn outline" value="cancel">Cancel</button>
|
|
434
|
+
<button class="btn primary" value="accept">Accept</button>
|
|
435
|
+
</footer>
|
|
436
|
+
</form>
|
|
437
|
+
</dialog>
|
|
438
|
+
```
|
|
439
|
+
|
|
355
440
|
## Overlays inside modals
|
|
356
441
|
|
|
357
442
|
Flyouts and tooltips opened from inside a modal dialog stay exactly where they
|
|
@@ -490,7 +575,7 @@ transition.
|
|
|
490
575
|
<p>This dialog morphs to and from the trigger button.</p>
|
|
491
576
|
</header>
|
|
492
577
|
|
|
493
|
-
<footer>
|
|
578
|
+
<footer class="cluster justify-content-end">
|
|
494
579
|
<button class="btn outline" value="cancel">Cancel</button>
|
|
495
580
|
<button class="btn primary" value="confirm">Confirm</button>
|
|
496
581
|
</footer>
|
|
@@ -510,10 +595,13 @@ animation-friendly, and consistent across supported browsers.
|
|
|
510
595
|
dialog or an inherited value both reach it. A dialog is shrink-to-fit: a
|
|
511
596
|
composition that must fill this width sets `inline-size` as well.
|
|
512
597
|
- `--modal-pad` — padding of the direct `<form>` or `.stack` content wrapper.
|
|
513
|
-
- `--modal-header-bg` — background of a direct header band.
|
|
514
598
|
- `--dialog-viewport-gap` — distance kept between the dialog and the viewport edges.
|
|
515
|
-
- `--dialog-icon-size` — diameter of the `.dialog-icon` circle.
|
|
516
|
-
|
|
599
|
+
- `--dialog-icon-size` — diameter of the `.dialog-icon` circle. The heading
|
|
600
|
+
beside a leading icon reads the same hook to center on it, so set it on the
|
|
601
|
+
icon's media row (or the dialog) and both inherit one value. A value on the
|
|
602
|
+
icon alone sizes only the circle.
|
|
603
|
+
- `--dialog-icon-glyph-size` — size of the glyph centered inside `.dialog-icon`;
|
|
604
|
+
same placement as `--dialog-icon-size`.
|
|
517
605
|
- `--close-size` / `--close-icon-size` — size of the corner `.close` and of its
|
|
518
606
|
X. The header reserves the close size, its edge inset, and a content gap so
|
|
519
607
|
the title never runs under it.
|
|
@@ -61,7 +61,7 @@ your intended target `autofocus`; otherwise the body claims initial focus.
|
|
|
61
61
|
</header>
|
|
62
62
|
|
|
63
63
|
<nav>
|
|
64
|
-
<ul class="nav-list
|
|
64
|
+
<ul class="nav-list">
|
|
65
65
|
<li><a href="#" aria-current="page">Home</a></li>
|
|
66
66
|
<li><a href="#">Users</a></li>
|
|
67
67
|
<li><a href="#">Settings</a></li>
|
|
@@ -103,7 +103,7 @@ actions and the close button can close the drawer.
|
|
|
103
103
|
<p>Unsaved changes will be lost if you close without saving.</p>
|
|
104
104
|
</div>
|
|
105
105
|
|
|
106
|
-
<footer class="cluster
|
|
106
|
+
<footer class="cluster justify-content-end">
|
|
107
107
|
<button class="btn" value="save">Save</button>
|
|
108
108
|
</footer>
|
|
109
109
|
</form>
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# Navbar
|
|
2
2
|
|
|
3
|
-
> Horizontal top-level navigation bar with a brand, an inline link list, and a vertical nav-list for drawers.
|
|
3
|
+
> Horizontal top-level navigation bar with a brand, an inline `.cluster` link list, and a vertical `.nav-list` for drawers.
|
|
4
4
|
|
|
5
5
|
- Use `.navbar` for the horizontal bar shell.
|
|
6
6
|
- `.navbar-brand` is the brand link at the inline start.
|
|
7
|
-
-
|
|
7
|
+
- Horizontal links live in a `.cluster`; its items are `.nav-link`.
|
|
8
8
|
- `.nav-list` is the shared vertical navigation list, reused by `.drawer` for stacked links.
|
|
9
9
|
- Mark the current page with `aria-current="page"` on the active `.nav-link`.
|
|
10
10
|
- Presence is the contract: set `aria-current` on the current link and remove
|
|
@@ -15,9 +15,9 @@ For a public or normally scrolling page, `.navbar` belongs inside the semantic
|
|
|
15
15
|
site header. Do not use `.topbar` or `.app-layout` unless the page actually has
|
|
16
16
|
the specialized persistent application-shell behavior those APIs describe.
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
Horizontal navbar links use a `.cluster`. Use `.nav-list` when the navigation
|
|
19
|
+
becomes a full-width vertical list. The two are distinct contracts, so pick one
|
|
20
|
+
per container.
|
|
21
21
|
|
|
22
22
|
`.navbar` stays the horizontal bar for a site or webapp header with a brand and
|
|
23
23
|
normal document scrolling. `.app-nav` is not merely a stacked-icon flavour of it:
|
|
@@ -32,7 +32,6 @@ icons. See [App Navigation](app-navigation.md).
|
|
|
32
32
|
| --------------- | ----------- | ----------------------------------------------------- |
|
|
33
33
|
| `.navbar` | Component | Horizontal bar shell. |
|
|
34
34
|
| `.navbar-brand` | Composition | Brand link at the inline start. |
|
|
35
|
-
| `.navbar-nav` | Composition | Horizontal link list. |
|
|
36
35
|
| `.nav-link` | Component | A link item; current page via `aria-current="page"`. |
|
|
37
36
|
| `.nav-list` | Component | Shared vertical navigation list, reused by `.drawer`. |
|
|
38
37
|
|
|
@@ -41,7 +40,7 @@ icons. See [App Navigation](app-navigation.md).
|
|
|
41
40
|
```html demo
|
|
42
41
|
<nav class="navbar" aria-label="Main">
|
|
43
42
|
<a class="navbar-brand" href="/">Actual CSS</a>
|
|
44
|
-
<ul class="
|
|
43
|
+
<ul class="cluster">
|
|
45
44
|
<li><a class="nav-link" href="/docs" aria-current="page">Docs</a></li>
|
|
46
45
|
<li><a class="nav-link" href="/components">Components</a></li>
|
|
47
46
|
<li><a class="nav-link" href="/examples">Examples</a></li>
|
|
@@ -70,7 +69,7 @@ accessible name.
|
|
|
70
69
|
```html demo
|
|
71
70
|
<nav class="navbar" aria-label="Main">
|
|
72
71
|
<a class="navbar-brand" href="/">Actual CSS</a>
|
|
73
|
-
<ul class="
|
|
72
|
+
<ul class="cluster">
|
|
74
73
|
<li><a class="nav-link" href="/" aria-current="page">Home</a></li>
|
|
75
74
|
<li><a class="nav-link" href="/docs">Docs</a></li>
|
|
76
75
|
</ul>
|
|
@@ -99,7 +98,7 @@ accessible name.
|
|
|
99
98
|
</header>
|
|
100
99
|
|
|
101
100
|
<nav>
|
|
102
|
-
<ul class="nav-list
|
|
101
|
+
<ul class="nav-list">
|
|
103
102
|
<li><a class="nav-link" href="#" aria-current="page">Home</a></li>
|
|
104
103
|
<li><a class="nav-link" href="#">Docs</a></li>
|
|
105
104
|
<li><a class="nav-link" href="#">Components</a></li>
|
|
@@ -101,9 +101,9 @@ table width before the wrapper scrolls horizontally.
|
|
|
101
101
|
## Compact tables
|
|
102
102
|
|
|
103
103
|
`.compact` lowers cell padding and establishes compact density for controls or
|
|
104
|
-
spacing helpers inside cells.
|
|
105
|
-
|
|
106
|
-
|
|
104
|
+
spacing helpers inside cells. The text stays as set; a data-heavy table that
|
|
105
|
+
also wants condensed type sets `font-stretch` on itself. It is the same
|
|
106
|
+
vocabulary as `.card.compact`.
|
|
107
107
|
|
|
108
108
|
```html demo
|
|
109
109
|
<div class="table-wrap">
|
|
@@ -322,7 +322,7 @@ can be multi-column with `<section>` / `<ul>` groups.
|
|
|
322
322
|
|
|
323
323
|
```html demo
|
|
324
324
|
<nav aria-label="Main navigation">
|
|
325
|
-
<ul class="
|
|
325
|
+
<ul class="cluster">
|
|
326
326
|
<li class="flyout-trigger">
|
|
327
327
|
<button class="btn ghost"
|
|
328
328
|
type="button"
|
|
@@ -373,7 +373,7 @@ a separate `dialog.drawer` when the content needs a modal mobile presentation.
|
|
|
373
373
|
|
|
374
374
|
```html demo
|
|
375
375
|
<nav aria-label="Product navigation">
|
|
376
|
-
<ul class="
|
|
376
|
+
<ul class="cluster">
|
|
377
377
|
<li class="flyout-trigger">
|
|
378
378
|
<button class="btn ghost"
|
|
379
379
|
type="button"
|
|
@@ -26,7 +26,7 @@ or style `[aria-current]` yourself.
|
|
|
26
26
|
|
|
27
27
|
```html demo
|
|
28
28
|
<nav class="scrollspy" data-enhance="scrollspy" aria-label="Page sections">
|
|
29
|
-
<ol class="nav-list
|
|
29
|
+
<ol class="nav-list">
|
|
30
30
|
<li><a class="nav-link" href="#overview" aria-current="location">Overview</a></li>
|
|
31
31
|
<li><a class="nav-link" href="#tokens">Tokens</a></li>
|
|
32
32
|
<li><a class="nav-link" href="#components">Components</a></li>
|
|
@@ -31,14 +31,14 @@ fails to submit shows its `data-validation-message` in the status bar with the
|
|
|
31
31
|
stays optional.
|
|
32
32
|
|
|
33
33
|
```html demo
|
|
34
|
-
<form class="needs-validation" data-enhance="validation" data-validation-message="Please check the highlighted fields.">
|
|
34
|
+
<form class="stack needs-validation" data-enhance="validation" data-validation-message="Please check the highlighted fields.">
|
|
35
35
|
<label class="field">
|
|
36
36
|
<span class="field-label">Email</span>
|
|
37
37
|
<input class="input" type="email" name="email" required
|
|
38
38
|
aria-describedby="sb-email-error" />
|
|
39
39
|
<span class="field-error" id="sb-email-error" role="alert">Enter a valid email.</span>
|
|
40
40
|
</label>
|
|
41
|
-
<div class="form-actions">
|
|
41
|
+
<div class="cluster form-actions">
|
|
42
42
|
<button class="btn primary" type="submit">Submit</button>
|
|
43
43
|
</div>
|
|
44
44
|
</form>
|