@amsterdam/design-system-css 0.11.1 → 0.13.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 +42 -17
- package/README.md +69 -40
- package/dist/accordion/accordion.css +1 -1
- package/dist/accordion/accordion.css.map +1 -1
- package/dist/action-group/action-group.css +1 -0
- package/dist/action-group/action-group.css.map +1 -0
- package/dist/avatar/avatar.css +1 -1
- package/dist/avatar/avatar.css.map +1 -1
- package/dist/blockquote/blockquote.css.map +1 -1
- package/dist/breakout/breakout.css +1 -0
- package/dist/breakout/breakout.css.map +1 -0
- package/dist/button/button.css +1 -1
- package/dist/button/button.css.map +1 -1
- package/dist/checkbox/checkbox.css.map +1 -1
- package/dist/description-list/description-list.css +1 -1
- package/dist/description-list/description-list.css.map +1 -1
- package/dist/dialog/dialog.css +1 -1
- package/dist/dialog/dialog.css.map +1 -1
- package/dist/field/field.css +1 -1
- package/dist/field/field.css.map +1 -1
- package/dist/file-input/file-input.css.map +1 -1
- package/dist/grid/grid.css +1 -1
- package/dist/grid/grid.css.map +1 -1
- package/dist/header/header.css +1 -1
- package/dist/header/header.css.map +1 -1
- package/dist/hint/hint.css +1 -0
- package/dist/hint/hint.css.map +1 -0
- package/dist/icon-button/icon-button.css +1 -1
- package/dist/icon-button/icon-button.css.map +1 -1
- package/dist/image-slider/image-slider.css +1 -0
- package/dist/image-slider/image-slider.css.map +1 -0
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/link/link.css +1 -1
- package/dist/link/link.css.map +1 -1
- package/dist/link-list/link-list.css +1 -1
- package/dist/link-list/link-list.css.map +1 -1
- package/dist/ordered-list/ordered-list.css +1 -1
- package/dist/ordered-list/ordered-list.css.map +1 -1
- package/dist/pagination/pagination.css +1 -1
- package/dist/pagination/pagination.css.map +1 -1
- package/dist/password-input/password-input.css +1 -0
- package/dist/password-input/password-input.css.map +1 -0
- package/dist/radio/radio.css +1 -1
- package/dist/radio/radio.css.map +1 -1
- package/dist/screen/screen.css +1 -1
- package/dist/screen/screen.css.map +1 -1
- package/dist/search-field/search-field.css.map +1 -1
- package/dist/select/select.css.map +1 -1
- package/dist/switch/switch.css +1 -1
- package/dist/switch/switch.css.map +1 -1
- package/dist/tabs/tabs.css +1 -1
- package/dist/tabs/tabs.css.map +1 -1
- package/dist/unordered-list/unordered-list.css +1 -1
- package/dist/unordered-list/unordered-list.css.map +1 -1
- package/package.json +11 -6
- package/src/components/accordion/accordion.scss +10 -1
- package/src/components/action-group/README.md +14 -0
- package/src/components/action-group/action-group.scss +15 -0
- package/src/components/avatar/README.md +3 -3
- package/src/components/avatar/avatar.scss +9 -0
- package/src/components/blockquote/blockquote.scss +4 -4
- package/src/components/breadcrumb/README.md +7 -9
- package/src/components/breakout/README.md +5 -0
- package/src/components/breakout/breakout.scss +163 -0
- package/src/components/button/README.md +5 -4
- package/src/components/button/button.scss +16 -7
- package/src/components/card/README.md +5 -1
- package/src/components/checkbox/README.md +1 -1
- package/src/components/checkbox/checkbox.scss +2 -2
- package/src/components/description-list/README.md +6 -5
- package/src/components/description-list/description-list.scss +27 -11
- package/src/components/dialog/README.md +2 -9
- package/src/components/dialog/dialog.scss +13 -30
- package/src/components/field/README.md +1 -1
- package/src/components/field/field.scss +1 -0
- package/src/components/field-set/README.md +2 -0
- package/src/components/file-input/file-input.scss +2 -2
- package/src/components/footer/README.md +4 -4
- package/src/components/gap/README.md +9 -7
- package/src/components/grid/README.md +11 -12
- package/src/components/grid/_mixins.scss +110 -0
- package/src/components/grid/grid.scss +33 -37
- package/src/components/header/README.md +9 -11
- package/src/components/header/header.scss +1 -0
- package/src/components/hint/README.md +9 -0
- package/src/components/hint/hint.scss +9 -0
- package/src/components/icon-button/icon-button.scss +18 -14
- package/src/components/image-slider/README.md +25 -0
- package/src/components/image-slider/image-slider.scss +89 -0
- package/src/components/index.scss +5 -0
- package/src/components/label/README.md +3 -1
- package/src/components/link/README.md +5 -0
- package/src/components/link/link.scss +10 -10
- package/src/components/link-list/README.md +2 -3
- package/src/components/link-list/link-list.scss +6 -6
- package/src/components/margin/README.md +6 -6
- package/src/components/mark/README.md +1 -6
- package/src/components/ordered-list/README.md +5 -0
- package/src/components/ordered-list/ordered-list.scss +3 -5
- package/src/components/page-menu/README.md +5 -1
- package/src/components/pagination/pagination.scss +6 -6
- package/src/components/password-input/README.md +29 -0
- package/src/components/password-input/password-input.scss +59 -0
- package/src/components/radio/README.md +2 -2
- package/src/components/radio/radio.scss +123 -90
- package/src/components/screen/README.md +9 -8
- package/src/components/screen/screen.scss +1 -0
- package/src/components/search-field/README.md +1 -1
- package/src/components/search-field/search-field.scss +3 -3
- package/src/components/select/select.scss +2 -2
- package/src/components/skip-link/README.md +0 -5
- package/src/components/spotlight/README.md +2 -1
- package/src/components/switch/README.md +2 -2
- package/src/components/switch/switch.scss +9 -6
- package/src/components/tabs/README.md +3 -1
- package/src/components/tabs/tabs.scss +12 -0
- package/src/components/text-input/README.md +1 -1
- package/src/components/top-task-link/README.md +4 -0
- package/src/components/unordered-list/README.md +6 -0
- package/src/components/unordered-list/unordered-list.scss +3 -5
package/dist/radio/radio.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.ams-radio__input{appearance:none;inline-size:0;margin-block:0;margin-inline:0}.ams-radio__input:focus+label{outline:auto}.ams-radio__input:focus:not(:focus-visible)+label{outline:0}.ams-
|
|
1
|
+
.ams-radio__input{appearance:none;inline-size:0;margin-block:0;margin-inline:0}.ams-radio__input:focus+label{outline:auto}.ams-radio__input:focus:not(:focus-visible)+label{outline:0}.ams-radio__label{color:var(--ams-radio-color);cursor:pointer;display:inline-flex;font-family:var(--ams-radio-font-family);font-size:var(--ams-radio-font-size);font-weight:var(--ams-radio-font-weight);gap:var(--ams-radio-gap);line-height:var(--ams-radio-line-height);outline-offset:var(--ams-radio-outline-offset);text-decoration-thickness:var(--ams-radio-text-decoration-thickness);text-underline-offset:var(--ams-radio-text-underline-offset);text-rendering:optimizeLegibility;-moz-text-size-adjust:none;-webkit-text-size-adjust:none;text-size-adjust:none}.ams-radio__icon-container{block-size:var(--ams-radio-icon-container-block-size);display:flex;flex:none;inline-size:var(--ams-radio-icon-container-inline-size)}.ams-radio__circle{fill:none;stroke:var(--ams-radio-circle-stroke);stroke-width:.125rem}.ams-radio__checked-indicator{display:none;fill:var(--ams-radio-checked-indicator-fill)}.ams-radio__label:hover{color:var(--ams-radio-hover-color);text-decoration-line:var(--ams-radio-hover-text-decoration-line)}.ams-radio__label:hover .ams-radio__circle{stroke:var(--ams-radio-circle-hover-stroke)}.ams-radio__label:hover .ams-radio__checked-indicator{fill:var(--ams-radio-checked-indicator-hover-fill)}.ams-radio__input[aria-invalid=true]+.ams-radio__label .ams-radio__circle{stroke:var(--ams-radio-circle-invalid-stroke)}.ams-radio__input[aria-invalid=true]+.ams-radio__label .ams-radio__checked-indicator{fill:var(--ams-radio-checked-indicator-invalid-fill)}.ams-radio__input:checked+.ams-radio__label .ams-radio__checked-indicator{display:block}.ams-radio__input:disabled+.ams-radio__label{color:var(--ams-radio-disabled-color);cursor:not-allowed}.ams-radio__input:disabled+.ams-radio__label .ams-radio__circle{stroke:var(--ams-radio-circle-disabled-stroke)}.ams-radio__input:disabled+.ams-radio__label .ams-radio__checked-indicator{fill:var(--ams-radio-checked-indicator-disabled-fill)}.ams-radio__input[aria-invalid=true]:disabled+.ams-radio__label .ams-radio__circle{stroke:var(--ams-radio-circle-disabled-invalid-stroke)}.ams-radio__input[aria-invalid=true]:disabled+.ams-radio__label .ams-radio__checked-indicator{fill:var(--ams-radio-checked-indicator-disabled-invalid-fill)}.ams-radio__input:disabled+.ams-radio__label:hover{text-decoration:none}.ams-radio__input[aria-invalid=true]+.ams-radio__label:hover .ams-radio__circle{stroke:var(--ams-radio-circle-invalid-hover-stroke)}.ams-radio__input[aria-invalid=true]+.ams-radio__label:hover .ams-radio__checked-indicator{fill:var(--ams-radio-checked-indicator-invalid-hover-fill)}.ams-radio__input[aria-invalid=true]:disabled+.ams-radio__label:hover .ams-radio__circle{stroke:var(--ams-radio-circle-disabled-invalid-hover-stroke)}.ams-radio__input[aria-invalid=true]:disabled+.ams-radio__label:hover .ams-radio__checked-indicator{fill:var(--ams-radio-checked-indicator-disabled-invalid-hover-fill)}@media(forced-colors: active){.ams-radio__label .ams-radio__circle,.ams-radio__label:hover .ams-radio__circle,.ams-radio__input[aria-invalid=true]+.ams-radio__label .ams-radio__circle,.ams-radio__input[aria-invalid=true]+.ams-radio__label:hover .ams-radio__circle{stroke:FieldText}.ams-radio__label .ams-radio__checked-indicator,.ams-radio__label:hover .ams-radio__checked-indicator,.ams-radio__input[aria-invalid=true]+.ams-radio__label .ams-radio__checked-indicator,.ams-radio__input[aria-invalid=true]+.ams-radio__label:hover .ams-radio__checked-indicator{fill:FieldText}}@media(forced-colors: active){.ams-radio__input:checked+.ams-radio__label .ams-radio__circle,.ams-radio__input[aria-invalid=true]:checked+.ams-radio__label:hover .ams-radio__circle{stroke:ActiveText}.ams-radio__input:checked+.ams-radio__label .ams-radio__checked-indicator,.ams-radio__input[aria-invalid=true]:checked+.ams-radio__label:hover .ams-radio__checked-indicator{fill:ActiveText}}@media(forced-colors: active){.ams-radio__input:disabled+.ams-radio__label .ams-radio__circle,.ams-radio__input[aria-invalid=true]:disabled+.ams-radio__label .ams-radio__circle,.ams-radio__input[aria-invalid=true]:disabled+.ams-radio__label:hover .ams-radio__circle{stroke:GrayText}.ams-radio__input:disabled+.ams-radio__label .ams-radio__checked-indicator,.ams-radio__input[aria-invalid=true]:disabled+.ams-radio__label .ams-radio__checked-indicator,.ams-radio__input[aria-invalid=true]:disabled+.ams-radio__label:hover .ams-radio__checked-indicator{fill:GrayText}}/*# sourceMappingURL=radio.css.map */
|
package/dist/radio/radio.css.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sourceRoot":"","sources":["../../src/components/radio/radio.scss","../../src/common/hide-input.scss","../../src/common/input-label-focus.scss","../../src/common/text-rendering.scss"],"names":[],"mappings":"AASA,kBCHE,gBACA,cACA,eACA,gBCIA,8BACE,aAGF,kDACE,
|
|
1
|
+
{"version":3,"sourceRoot":"","sources":["../../src/components/radio/radio.scss","../../src/common/hide-input.scss","../../src/common/input-label-focus.scss","../../src/common/text-rendering.scss"],"names":[],"mappings":"AASA,kBCHE,gBACA,cACA,eACA,gBCIA,8BACE,aAGF,kDACE,UFHJ,kBACE,6BACA,eACA,oBACA,yCACA,qCACA,yCACA,yBACA,yCACA,+CACA,qEACA,6DGhBA,kCACA,2BACA,8BACA,sBHkBF,2BACE,sDACA,aACA,UACA,wDAGF,mBACE,UACA,sCACA,qBAGF,8BACE,aACA,6CAIF,wBACE,mCACA,iEAEA,2CACE,4CAGF,sDACE,mDAMF,0EACE,8CAGF,qFACE,qDAMF,0EACE,cAKJ,6CACE,sCACA,mBAEA,gEACE,+CAGF,2EACE,sDAMF,mFAEE,uDAGF,8FAEE,8DAOJ,mDACE,qBAKA,gFAEE,oDAGF,2FAEE,2DAMF,yFAEE,6DAGF,oGAEE,oEAOJ,8BAKI,0OACE,iBAGF,sRACE,gBAMN,8BAGI,uJACE,kBAGF,6KACE,iBAMN,8BAII,4OACE,gBAGF,6QACE","file":"radio.css"}
|
package/dist/screen/screen.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.ams-screen{background-color:var(--ams-screen-background-color);margin-inline:auto;box-sizing:border-box}.ams-screen--full-height{min-block-size:100vh}.ams-screen--wide{max-inline-size:var(--ams-screen-wide-max-inline-size)}.ams-screen--x-wide{max-inline-size:var(--ams-screen-x-wide-max-inline-size)}/*# sourceMappingURL=screen.css.map */
|
|
1
|
+
.ams-screen{background-color:var(--ams-screen-background-color);margin-inline:auto;position:relative;box-sizing:border-box}.ams-screen--full-height{min-block-size:100vh}.ams-screen--wide{max-inline-size:var(--ams-screen-wide-max-inline-size)}.ams-screen--x-wide{max-inline-size:var(--ams-screen-x-wide-max-inline-size)}/*# sourceMappingURL=screen.css.map */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sourceRoot":"","sources":["../../src/components/screen/screen.scss"],"names":[],"mappings":"AASA,YACE,oDACA,
|
|
1
|
+
{"version":3,"sourceRoot":"","sources":["../../src/components/screen/screen.scss"],"names":[],"mappings":"AASA,YACE,oDACA,mBACA,kBANA,sBAWF,yBACE,qBAGF,kBACE,uDAGF,oBACE","file":"screen.css"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sourceRoot":"","sources":["../../src/components/search-field/search-field.scss","../../src/common/text-rendering.scss"],"names":[],"mappings":"AAOA,kBACE,aACA,kBAYF,yBACE,gEACA,oDACA,0CACA,sDACA,kDACA,sDACA,iBACA,sDACA,4DACA,0DACA,4DACA,0BCvBA,kCACA,2BACA,8BACA,8CDCA,gBACA,SACA,gBACA,sBACA,eAoBA,+BACE,0DAGF,+BACE,UAIJ,6EAEE,4DAEA,yFAEE,kEAIJ,sCACE,sDACA,aAGF,uDACE,gBACA,8EACA,kEACA,eACA,oEACA,0BAWF,0BACE,iEACA,2CACA,eACA,6DAGA,2DACA,6DACA,0BAhBA,
|
|
1
|
+
{"version":3,"sourceRoot":"","sources":["../../src/components/search-field/search-field.scss","../../src/common/text-rendering.scss"],"names":[],"mappings":"AAOA,kBACE,aACA,kBAYF,yBACE,gEACA,oDACA,0CACA,sDACA,kDACA,sDACA,iBACA,sDACA,4DACA,0DACA,4DACA,0BCvBA,kCACA,2BACA,8BACA,8CDCA,gBACA,SACA,gBACA,sBACA,eAoBA,+BACE,0DAGF,+BACE,UAIJ,6EAEE,4DAEA,yFAEE,kEAIJ,sCACE,sDACA,aAGF,uDACE,gBACA,8EACA,kEACA,eACA,oEACA,0BAWF,0BACE,iEACA,2CACA,eACA,6DAGA,2DACA,6DACA,0BAhBA,SACA,eACA,gBAkBA,gCACE","file":"search-field.css"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sourceRoot":"","sources":["../../src/components/select/select.scss"],"names":[],"mappings":"AAWA,YACE,oDACA,wCACA,8BACA,0CACA,sCACA,0CACA,iBACA,0CACA,gDACA,8CACA,gDACA,0BAjBA,gBACA,SACA,
|
|
1
|
+
{"version":3,"sourceRoot":"","sources":["../../src/components/select/select.scss"],"names":[],"mappings":"AAWA,YACE,oDACA,wCACA,8BACA,0CACA,sCACA,0CACA,iBACA,0CACA,gDACA,8CACA,gDACA,0BAjBA,gBACA,SACA,gBAmBA,4BACE,oDACA,0DACA,4BACA,wBAGF,kBACE,8CAIJ,mDAEE,gDAGF,qBACE,iDACA,uCACA,mBAEA,qCACE,6DAIJ,+DAEE,sDAGF,6BACE","file":"select.css"}
|
package/dist/switch/switch.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.ams-switch__input{appearance:none;inline-size:0;margin-block:0;margin-inline:0}.ams-switch__input:focus+label{outline:auto}.ams-switch__input:focus:not(:focus-visible)+label{outline:0}.ams-switch__label{--ams-switch-track-
|
|
1
|
+
.ams-switch__input{appearance:none;inline-size:0;margin-block:0;margin-inline:0}.ams-switch__input:focus+label{outline:auto}.ams-switch__input:focus:not(:focus-visible)+label{outline:0}.ams-switch__label{--ams-switch-track-border-width: 0.0625rem;background-color:var(--ams-switch-background-color);border:var(--ams-switch-track-border-width) solid rgba(0,0,0,0);border-radius:calc(var(--ams-switch-thumb-inline-size)*2);cursor:pointer;display:inline-block;inline-size:var(--ams-switch-inline-size);outline-offset:var(--ams-switch-outline-offset);transition:background-color .2s ease-in-out;box-sizing:border-box}.ams-switch__label::before{background-color:var(--ams-switch-thumb-background-color);block-size:var(--ams-switch-thumb-block-size);border-radius:50%;content:"";display:block;inline-size:var(--ams-switch-thumb-inline-size);transition-duration:.1s;transition-property:box-shadow,transform;transition-timing-function:ease-in-out}@media(forced-colors: active){.ams-switch__label::before{background-color:FieldText}}.ams-switch__input:checked+.ams-switch__label{background-color:var(--ams-switch-checked-background-color)}.ams-switch__input:disabled+.ams-switch__label{background-color:var(--ams-switch-disabled-background-color);cursor:not-allowed}.ams-switch__input:checked+.ams-switch__label::before{transform:translate(calc(100% - 2 * var(--ams-switch-track-border-width)))}.ams-switch:hover .ams-switch__input:enabled+.ams-switch__label::before{box-shadow:var(--ams-switch-thumb-hover-box-shadow)}/*# sourceMappingURL=switch.css.map */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sourceRoot":"","sources":["../../src/components/switch/switch.scss","../../src/common/hide-input.scss","../../src/common/input-label-focus.scss"],"names":[],"mappings":"AAYA,mBCNE,gBACA,cACA,eACA,gBCIA,+BACE,aAGF,mDACE,UFDJ,mBACE,
|
|
1
|
+
{"version":3,"sourceRoot":"","sources":["../../src/components/switch/switch.scss","../../src/common/hide-input.scss","../../src/common/input-label-focus.scss"],"names":[],"mappings":"AAYA,mBCNE,gBACA,cACA,eACA,gBCIA,+BACE,aAGF,mDACE,UFDJ,mBACE,2CAEA,oDAGA,gEACA,0DACA,eACA,qBACA,0CACA,gDACA,4CApBA,sBAyBF,2BACE,0DACA,8CACA,kBACA,WACA,cACA,gDACA,wBACA,yCACA,uCAEA,8BAXF,2BAYI,4BAIJ,8CACE,4DAGF,+CACE,6DACA,mBAGF,sDACE,2EAGF,wEACE","file":"switch.css"}
|
package/dist/tabs/tabs.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.ams-tabs{display:grid;gap:var(--ams-tabs-gap)}.ams-tabs__list{background-color:var(--ams-tabs-list-background-color);border-block-end:var(--ams-tabs-list-border-block-end);display:flex;overflow-x:auto}.ams-tabs__button{color:var(--ams-tabs-button-color);cursor:var(--ams-tabs-button-cursor);font-family:var(--ams-tabs-button-font-family);font-size:var(--ams-tabs-button-font-size);font-weight:var(--ams-tabs-button-font-weight);line-height:var(--ams-tabs-button-line-height);outline-offset:var(--ams-tabs-button-outline-offset);padding-block:var(--ams-tabs-button-padding-block);padding-inline:var(--ams-tabs-button-padding-inline);background-color:rgba(0,0,0,0);border:0}.ams-tabs__button:disabled{color:var(--ams-tabs-button-disabled-color);cursor:var(--ams-tab-button-disabled-cursor)}.ams-tabs__button:hover:not([aria-selected=true],[disabled]){box-shadow:var(--ams-tabs-button-hover-box-shadow);color:var(--ams-tabs-button-hover-color)}.ams-tabs__button[aria-selected=true]{background-color:var(--ams-tabs-button-selected-background-color);color:var(--ams-tabs-button-selected-color)}/*# sourceMappingURL=tabs.css.map */
|
|
1
|
+
.ams-tabs{display:grid;gap:var(--ams-tabs-gap)}.ams-tabs__list{background-color:var(--ams-tabs-list-background-color);border-block-end:var(--ams-tabs-list-border-block-end);display:flex;overflow-x:auto}.ams-tabs__button{color:var(--ams-tabs-button-color);cursor:var(--ams-tabs-button-cursor);font-family:var(--ams-tabs-button-font-family);font-size:var(--ams-tabs-button-font-size);font-weight:var(--ams-tabs-button-font-weight);line-height:var(--ams-tabs-button-line-height);outline-offset:var(--ams-tabs-button-outline-offset);padding-block:var(--ams-tabs-button-padding-block);padding-inline:var(--ams-tabs-button-padding-inline);background-color:rgba(0,0,0,0);border:0;margin-block:0;margin-inline:0}.ams-tabs__button:disabled{color:var(--ams-tabs-button-disabled-color);cursor:var(--ams-tab-button-disabled-cursor)}@media(forced-colors: active){.ams-tabs__button:disabled{color:GrayText}}.ams-tabs__button:hover:not([aria-selected=true],[disabled]){box-shadow:var(--ams-tabs-button-hover-box-shadow);color:var(--ams-tabs-button-hover-color)}.ams-tabs__button[aria-selected=true]{background-color:var(--ams-tabs-button-selected-background-color);color:var(--ams-tabs-button-selected-color)}@media(forced-colors: active){.ams-tabs__button[aria-selected=true]{background-color:SelectedItem}}/*# sourceMappingURL=tabs.css.map */
|
package/dist/tabs/tabs.css.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sourceRoot":"","sources":["../../src/components/tabs/tabs.scss"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"sourceRoot":"","sources":["../../src/components/tabs/tabs.scss"],"names":[],"mappings":"AAgBA,UACE,aACA,wBAGF,gBACE,uDACA,uDACA,aACA,gBAGF,kBACE,mCACA,qCACA,+CACA,2CACA,+CACA,+CACA,qDACA,mDACA,qDA7BA,+BACA,SACA,eACA,gBA8BA,2BACE,4CACA,6CAEA,8BAJF,2BAKI,gBAIJ,6DACE,mDACA,yCAGF,sCACE,kEACA,4CAEA,8BAJF,sCAKI","file":"tabs.css"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ams-unordered-list{display:grid;gap:var(--ams-unordered-list-gap);text-rendering:optimizeLegibility;-moz-text-size-adjust:none;-webkit-text-size-adjust:none;text-size-adjust:none;box-sizing:border-box;list-style:none;margin-block:0;padding-inline-start:0}.ams-unordered-list:not(.ams-unordered-list--no-markers){color:var(--ams-unordered-list-color);font-family:var(--ams-unordered-list-font-family);font-size:var(--ams-unordered-list-font-size);font-weight:var(--ams-unordered-list-font-weight);line-height:var(--ams-unordered-list-line-height);list-style-type:var(--ams-unordered-list-list-style-type)}.ams-unordered-list:not(.ams-unordered-list--no-markers) .ams-unordered-list__item{margin-inline-start:var(--ams-unordered-list-item-margin-inline-start);padding-inline-start:var(--ams-unordered-list-item-padding-inline-start)}.ams-unordered-list--inverse-color:not(.ams-unordered-list--no-markers){color:var(--ams-unordered-list-inverse-color)}.ams-unordered-list--small:not(.ams-unordered-list--no-markers){font-size:var(--ams-unordered-list-small-font-size);line-height:var(--ams-unordered-list-small-line-height)}:is(.ams-ordered-list,.ams-unordered-list) .ams-unordered-list{list-style-type:var(--ams-unordered-list-unordered-list-list-style-type)}:is(.ams-ordered-list,.ams-unordered-list) .ams-unordered-list .ams-unordered-list__item{margin-inline-start:var(--ams-unordered-list-unordered-list-item-margin-inline-start);padding-inline-start:var(--ams-unordered-list-unordered-list-item-padding-inline-start)}/*# sourceMappingURL=unordered-list.css.map */
|
|
1
|
+
.ams-unordered-list{display:grid;gap:var(--ams-unordered-list-gap);text-rendering:optimizeLegibility;-moz-text-size-adjust:none;-webkit-text-size-adjust:none;text-size-adjust:none;box-sizing:border-box;list-style:none;margin-block:0;padding-inline-start:0}.ams-unordered-list:not(.ams-unordered-list--no-markers){color:var(--ams-unordered-list-color);font-family:var(--ams-unordered-list-font-family);font-size:var(--ams-unordered-list-font-size);font-weight:var(--ams-unordered-list-font-weight);line-height:var(--ams-unordered-list-line-height);list-style-type:var(--ams-unordered-list-list-style-type)}.ams-unordered-list:not(.ams-unordered-list--no-markers) .ams-unordered-list__item{margin-inline-start:var(--ams-unordered-list-item-margin-inline-start);padding-inline-start:var(--ams-unordered-list-item-padding-inline-start)}.ams-unordered-list--inverse-color:not(.ams-unordered-list--no-markers){color:var(--ams-unordered-list-inverse-color)}.ams-unordered-list--small:not(.ams-unordered-list--no-markers){font-size:var(--ams-unordered-list-small-font-size);line-height:var(--ams-unordered-list-small-line-height)}:is(.ams-ordered-list,.ams-unordered-list) .ams-unordered-list{gap:var(--ams-unordered-list-unordered-list-gap);list-style-type:var(--ams-unordered-list-unordered-list-list-style-type);padding-block-end:var(--ams-unordered-list-unordered-list-padding-block-end);padding-block-start:var(--ams-unordered-list-unordered-list-padding-block-start)}:is(.ams-ordered-list,.ams-unordered-list) .ams-unordered-list .ams-unordered-list__item{margin-inline-start:var(--ams-unordered-list-unordered-list-item-margin-inline-start);padding-inline-start:var(--ams-unordered-list-unordered-list-item-padding-inline-start)}/*# sourceMappingURL=unordered-list.css.map */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sourceRoot":"","sources":["../../src/components/unordered-list/unordered-list.scss","../../src/common/text-rendering.scss"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"sourceRoot":"","sources":["../../src/components/unordered-list/unordered-list.scss","../../src/common/text-rendering.scss"],"names":[],"mappings":"AAcA,oBACE,aACA,kCCNA,kCACA,2BACA,8BACA,sBDLA,sBACA,gBACA,eACA,uBAWF,yDACE,sCACA,kDACA,8CACA,kDACA,kDACA,0DAEA,mFACE,uEACA,yEAIJ,wEACE,8CAGF,gEACE,oDACA,wDAGF,+DACE,iDACA,yEACA,6EACA,iFAEA,yFACE,sFACA","file":"unordered-list.css"}
|
package/package.json
CHANGED
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.
|
|
3
|
-
"author": "
|
|
4
|
-
"description": "
|
|
2
|
+
"version": "0.13.0",
|
|
3
|
+
"author": "Design System Team, City of Amsterdam <designsystem@amsterdam.nl>",
|
|
4
|
+
"description": "Stylesheets for all components from the Amsterdam Design System and some general utilities. Use it to apply the visual design of the City of Amsterdam to your HTML elements or non-React components.",
|
|
5
|
+
"homepage": "https://designsystem.amsterdam/",
|
|
5
6
|
"license": "EUPL-1.2",
|
|
6
7
|
"name": "@amsterdam/design-system-css",
|
|
7
8
|
"keywords": [
|
|
9
|
+
"amsterdam",
|
|
10
|
+
"amsterdam-design-system",
|
|
11
|
+
"css",
|
|
12
|
+
"design-system",
|
|
8
13
|
"nl-design-system"
|
|
9
14
|
],
|
|
10
15
|
"private": false,
|
|
@@ -14,11 +19,11 @@
|
|
|
14
19
|
"directory": "packages/css"
|
|
15
20
|
},
|
|
16
21
|
"devDependencies": {
|
|
17
|
-
"sass": "1.
|
|
22
|
+
"sass": "1.80.3"
|
|
18
23
|
},
|
|
19
24
|
"peerDependencies": {
|
|
20
|
-
"@amsterdam/design-system-tokens": "0.
|
|
21
|
-
"@amsterdam/design-system-assets": "0.2.
|
|
25
|
+
"@amsterdam/design-system-tokens": "0.13.0",
|
|
26
|
+
"@amsterdam/design-system-assets": "0.2.2"
|
|
22
27
|
},
|
|
23
28
|
"scripts": {
|
|
24
29
|
"build": "sass src/components:dist/ --style=compressed",
|
|
@@ -19,9 +19,16 @@
|
|
|
19
19
|
margin-inline: 0;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
+
@mixin reset-button {
|
|
23
|
+
border: 0;
|
|
24
|
+
margin-block: 0; // [1]
|
|
25
|
+
margin-inline: 0; // [1]
|
|
26
|
+
|
|
27
|
+
// [1] Remove the margin in older Safari.
|
|
28
|
+
}
|
|
29
|
+
|
|
22
30
|
.ams-accordion__button {
|
|
23
31
|
background-color: transparent;
|
|
24
|
-
border: 0;
|
|
25
32
|
color: var(--ams-accordion-button-color);
|
|
26
33
|
cursor: pointer;
|
|
27
34
|
display: flex;
|
|
@@ -35,6 +42,8 @@
|
|
|
35
42
|
padding-inline: var(--ams-accordion-button-padding-inline);
|
|
36
43
|
text-align: start;
|
|
37
44
|
|
|
45
|
+
@include reset-button;
|
|
46
|
+
|
|
38
47
|
&:focus {
|
|
39
48
|
outline-offset: var(--ams-accordion-button-focus-outline-offset);
|
|
40
49
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<!-- @license CC0-1.0 -->
|
|
2
|
+
|
|
3
|
+
# Action Group
|
|
4
|
+
|
|
5
|
+
Groups one or more related actions and manages their layout.
|
|
6
|
+
|
|
7
|
+
## How to use
|
|
8
|
+
|
|
9
|
+
- Both a [Button](?path=/docs/components-buttons-button--docs) and a [Link](?path=/docs/components-navigation-link--docs) can provide an ‘action’ in this context.
|
|
10
|
+
- If two or more buttons or links are in a row, put the one for the primary action first and the other buttons behind it.
|
|
11
|
+
- Sighted users will read the primary action first, in line with the natural reading order.
|
|
12
|
+
The same goes for users of screen readers, who will hear the primary action first, and users of a keyboard, who will focus the primary action first.
|
|
13
|
+
- Also, this approach keeps the order of buttons consistent on both narrow and wide screens: if the buttons do not fit next to each other, they get stacked vertically with the primary action on top.
|
|
14
|
+
- Replace the default ’group’ role with `role="toolbar"` for button toolbars.
|
|
@@ -9,7 +9,7 @@ A circular badge representing a person.
|
|
|
9
9
|
The avatar contains 1 or 2 initial letters from the person's full name, a picture, or a generic icon.
|
|
10
10
|
The default background colour is dark blue.
|
|
11
11
|
|
|
12
|
-
##
|
|
12
|
+
## Guidelines
|
|
13
13
|
|
|
14
|
-
Display an avatar for the person currently using the application,
|
|
15
|
-
or to associate a person with a content item.
|
|
14
|
+
- Display an avatar for the person currently using the application,
|
|
15
|
+
or to associate a person with a content item.
|
|
@@ -20,6 +20,15 @@
|
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
+
.ams-avatar:not(.ams-avatar--has-image) {
|
|
24
|
+
@media (forced-colors: active) {
|
|
25
|
+
border-style: solid;
|
|
26
|
+
border-width: var(--ams-avatar-forced-colors-border-width);
|
|
27
|
+
padding-block: calc(var(--ams-avatar-padding-block) - var(--ams-avatar-forced-colors-border-width));
|
|
28
|
+
padding-inline: calc(var(--ams-avatar-padding-inline) - var(--ams-avatar-forced-colors-border-width));
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
23
32
|
.ams-avatar--has-image {
|
|
24
33
|
inline-size: calc(var(--ams-avatar-line-height) * var(--ams-avatar-font-size) + 2 * var(--ams-avatar-padding-inline));
|
|
25
34
|
overflow: hidden;
|
|
@@ -21,6 +21,10 @@
|
|
|
21
21
|
line-height: var(--ams-blockquote-line-height);
|
|
22
22
|
quotes: "“" "”";
|
|
23
23
|
|
|
24
|
+
@include hyphenation;
|
|
25
|
+
@include text-rendering;
|
|
26
|
+
@include reset;
|
|
27
|
+
|
|
24
28
|
&::before {
|
|
25
29
|
content: open-quote;
|
|
26
30
|
}
|
|
@@ -28,10 +32,6 @@
|
|
|
28
32
|
&::after {
|
|
29
33
|
content: close-quote;
|
|
30
34
|
}
|
|
31
|
-
|
|
32
|
-
@include hyphenation;
|
|
33
|
-
@include text-rendering;
|
|
34
|
-
@include reset;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
.ams-blockquote--inverse-color {
|
|
@@ -7,14 +7,12 @@ Users can use it to navigate.
|
|
|
7
7
|
|
|
8
8
|
## Guidelines
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
- Only use the breadcrumb trail if it adds something functional for the user and the structure is ‘static’.
|
|
11
|
+
- Do not display the breadcrumb trail on a form page.
|
|
12
|
+
It distracts the user from their task, or one can accidentally interpret it as a Progress Indicator.
|
|
13
|
+
- This is a secondary navigation pattern.
|
|
14
|
+
It can’t replace the main navigation.
|
|
11
15
|
|
|
12
|
-
|
|
16
|
+
### Using links with routing libraries
|
|
13
17
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
Do not display the breadcrumb trail on a form page.
|
|
17
|
-
It distracts the user from their task, or one can accidentally interpret it as a Progress Indicator.
|
|
18
|
-
|
|
19
|
-
It is a secondary navigation pattern.
|
|
20
|
-
It can’t replace the main navigation.
|
|
18
|
+
Check out the [developer guide](/docs/docs-developer-guide-routing-libraries--docs) on how to integrate links with external routing libraries.
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license EUPL-1.2+
|
|
3
|
+
* Copyright Gemeente Amsterdam
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
@import "../../common/breakpoint";
|
|
7
|
+
@import "../grid/grid";
|
|
8
|
+
@import "../grid/mixins";
|
|
9
|
+
|
|
10
|
+
$ams-breakout-row-span-max: 4;
|
|
11
|
+
|
|
12
|
+
.ams-breakout {
|
|
13
|
+
@include ams-grid;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
// Grid gap
|
|
17
|
+
|
|
18
|
+
.ams-breakout--gap-vertical--none {
|
|
19
|
+
@include ams-grid--gap-vertical--none;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.ams-breakout--gap-vertical--small {
|
|
23
|
+
@include ams-grid--gap-vertical--small;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.ams-breakout--gap-vertical--large {
|
|
27
|
+
@include ams-grid--gap-vertical--large;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
// Grid padding
|
|
31
|
+
|
|
32
|
+
.ams-breakout--padding-bottom--small {
|
|
33
|
+
@include ams-grid--padding-bottom--small;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.ams-breakout--padding-bottom--medium {
|
|
37
|
+
@include ams-grid--padding-bottom--medium;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.ams-breakout--padding-bottom--large {
|
|
41
|
+
@include ams-grid--padding-bottom--large;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.ams-breakout--padding-top--small {
|
|
45
|
+
@include ams-grid--padding-top--small;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.ams-breakout--padding-top--medium {
|
|
49
|
+
@include ams-grid--padding-top--medium;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.ams-breakout--padding-top--large {
|
|
53
|
+
@include ams-grid--padding-top--large;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.ams-breakout--padding-vertical--small {
|
|
57
|
+
@include ams-grid--padding-vertical--small;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.ams-breakout--padding-vertical--medium {
|
|
61
|
+
@include ams-grid--padding-vertical--medium;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.ams-breakout--padding-vertical--large {
|
|
65
|
+
@include ams-grid--padding-vertical--large;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
// Column span
|
|
69
|
+
// The order of these declaration blocks ensures the intended specificity.
|
|
70
|
+
|
|
71
|
+
.ams-breakout__cell--col-span-all {
|
|
72
|
+
@include ams-grid__cell--span-all;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
@for $i from 1 through $ams-grid-column-count {
|
|
76
|
+
.ams-breakout__cell--col-span-#{$i} {
|
|
77
|
+
@include ams-grid__cell--span($i);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.ams-breakout__cell--col-start-#{$i} {
|
|
81
|
+
@include ams-grid__cell--start($i);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
@media screen and (min-width: $ams-breakpoint-medium) {
|
|
86
|
+
@for $i from 1 through $ams-grid-column-count {
|
|
87
|
+
.ams-breakout__cell--col-span-#{$i}-medium {
|
|
88
|
+
@include ams-grid__cell--span-medium($i);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.ams-breakout__cell--col-start-#{$i}-medium {
|
|
92
|
+
@include ams-grid__cell--start-medium($i);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
@media screen and (min-width: $ams-breakpoint-wide) {
|
|
98
|
+
@for $i from 1 through $ams-grid-column-count {
|
|
99
|
+
.ams-breakout__cell--col-span-#{$i}-wide {
|
|
100
|
+
@include ams-grid__cell--span-wide($i);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.ams-breakout__cell--col-start-#{$i}-wide {
|
|
104
|
+
@include ams-grid__cell--start-wide($i);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
// Has content
|
|
110
|
+
|
|
111
|
+
.ams-breakout__cell--has-figure {
|
|
112
|
+
align-self: end;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.ams-breakout__cell--has-spotlight {
|
|
116
|
+
display: grid; /* Stretches the empty Spotlight vertically. */
|
|
117
|
+
margin-block: calc(var(--ams-space-grid-md) * -1);
|
|
118
|
+
margin-inline: calc(var(--ams-space-grid-lg) * -1);
|
|
119
|
+
|
|
120
|
+
.ams-breakout--gap-vertical--small > & {
|
|
121
|
+
margin-block: calc(var(--ams-space-grid-sm) * -1);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.ams-breakout--gap-vertical--large > & {
|
|
125
|
+
margin-block: calc(var(--ams-space-grid-lg) * -1);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
// Row span
|
|
130
|
+
|
|
131
|
+
@for $i from 1 through $ams-breakout-row-span-max {
|
|
132
|
+
.ams-breakout__cell--row-span-#{$i} {
|
|
133
|
+
grid-row-end: span $i;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.ams-breakout__cell--row-start-#{$i} {
|
|
137
|
+
grid-row-start: $i;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
@media screen and (min-width: $ams-breakpoint-medium) {
|
|
142
|
+
@for $i from 1 through $ams-breakout-row-span-max {
|
|
143
|
+
.ams-breakout__cell--row-span-#{$i}-medium {
|
|
144
|
+
grid-row-end: span $i;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.ams-breakout__cell--row-start-#{$i}-medium {
|
|
148
|
+
grid-row-start: $i;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
@media screen and (min-width: $ams-breakpoint-wide) {
|
|
154
|
+
@for $i from 1 through $ams-breakout-row-span-max {
|
|
155
|
+
.ams-breakout__cell--row-span-#{$i}-wide {
|
|
156
|
+
grid-row-end: span $i;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.ams-breakout__cell--row-start-#{$i}-wide {
|
|
160
|
+
grid-row-start: $i;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
}
|
|
@@ -6,11 +6,12 @@ Allows the user to perform actions and operate the user interface.
|
|
|
6
6
|
|
|
7
7
|
## Guidelines
|
|
8
8
|
|
|
9
|
-
-
|
|
10
|
-
-
|
|
11
|
-
- Use the correct type of button for the corresponding application.
|
|
12
|
-
For example, a button within a form must always be of the type `submit`.
|
|
9
|
+
- Choose a short label that describes the function of the button.
|
|
10
|
+
- Use the correct type of button for the corresponding application, e.g. `type="submit"` for the primary form button.
|
|
13
11
|
- Make sure one can operate a button through a keyboard.
|
|
12
|
+
- Wrap 2 or more consecutive buttons and/or links in an [Action Group](?path=/docs/components-buttons-action-group--docs).
|
|
13
|
+
- Primary, secondary and tertiary buttons can be used side by side.
|
|
14
|
+
Skipping levels is allowed.
|
|
14
15
|
|
|
15
16
|
## Relevant WCAG requirements
|
|
16
17
|
|
|
@@ -7,6 +7,10 @@
|
|
|
7
7
|
|
|
8
8
|
@mixin reset-button {
|
|
9
9
|
border: 0;
|
|
10
|
+
margin-block: 0; // [1]
|
|
11
|
+
margin-inline: 0; // [1]
|
|
12
|
+
|
|
13
|
+
// [1] Remove the margin in older Safari.
|
|
10
14
|
}
|
|
11
15
|
|
|
12
16
|
.ams-button {
|
|
@@ -22,13 +26,13 @@
|
|
|
22
26
|
padding-inline: var(--ams-button-padding-inline);
|
|
23
27
|
touch-action: manipulation;
|
|
24
28
|
|
|
29
|
+
@include text-rendering;
|
|
30
|
+
@include reset-button;
|
|
31
|
+
|
|
25
32
|
&:disabled,
|
|
26
33
|
&[aria-disabled="true"] {
|
|
27
34
|
cursor: var(--ams-button-disabled-cursor);
|
|
28
35
|
}
|
|
29
|
-
|
|
30
|
-
@include text-rendering;
|
|
31
|
-
@include reset-button;
|
|
32
36
|
}
|
|
33
37
|
|
|
34
38
|
@mixin ams-button-forced-color-mode {
|
|
@@ -42,6 +46,8 @@
|
|
|
42
46
|
box-shadow: var(--ams-button-primary-box-shadow);
|
|
43
47
|
color: var(--ams-button-primary-color);
|
|
44
48
|
|
|
49
|
+
@include ams-button-forced-color-mode;
|
|
50
|
+
|
|
45
51
|
&:disabled,
|
|
46
52
|
[aria-disabled="true"] {
|
|
47
53
|
background-color: var(--ams-button-primary-disabled-background-color);
|
|
@@ -52,8 +58,6 @@
|
|
|
52
58
|
background-color: var(--ams-button-primary-hover-background-color);
|
|
53
59
|
box-shadow: var(--ams-button-primary-hover-box-shadow);
|
|
54
60
|
}
|
|
55
|
-
|
|
56
|
-
@include ams-button-forced-color-mode;
|
|
57
61
|
}
|
|
58
62
|
|
|
59
63
|
.ams-button--secondary {
|
|
@@ -61,6 +65,8 @@
|
|
|
61
65
|
box-shadow: var(--ams-button-secondary-box-shadow);
|
|
62
66
|
color: var(--ams-button-secondary-color);
|
|
63
67
|
|
|
68
|
+
@include ams-button-forced-color-mode;
|
|
69
|
+
|
|
64
70
|
&:disabled,
|
|
65
71
|
[aria-disabled="true"] {
|
|
66
72
|
background-color: var(--ams-button-secondary-disabled-background-color);
|
|
@@ -72,8 +78,6 @@
|
|
|
72
78
|
box-shadow: var(--ams-button-secondary-hover-box-shadow);
|
|
73
79
|
color: var(--ams-button-secondary-hover-color);
|
|
74
80
|
}
|
|
75
|
-
|
|
76
|
-
@include ams-button-forced-color-mode;
|
|
77
81
|
}
|
|
78
82
|
|
|
79
83
|
.ams-button--tertiary {
|
|
@@ -91,3 +95,8 @@
|
|
|
91
95
|
color: var(--ams-button-tertiary-hover-color);
|
|
92
96
|
}
|
|
93
97
|
}
|
|
98
|
+
|
|
99
|
+
.ams-button--icon-only {
|
|
100
|
+
padding-block: var(--ams-button-icon-only-padding-block);
|
|
101
|
+
padding-inline: var(--ams-button-icon-only-padding-inline);
|
|
102
|
+
}
|
|
@@ -19,8 +19,12 @@ The link is mandatory.
|
|
|
19
19
|
For referencing a thematic page, use a [top task link](/docs/components-navigation-top-task-link--docs).
|
|
20
20
|
You can also use a [regular link](/docs/components-navigation-link--docs).
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
### Screen readers
|
|
23
23
|
|
|
24
24
|
With a screen reader, you can navigate using headings and links in a document.
|
|
25
25
|
The title of a card is a link within a heading, allowing you to utilize both navigation methods.
|
|
26
26
|
A screen reader reads the title first, followed by the rest of the content.
|
|
27
|
+
|
|
28
|
+
### Using links with routing libraries
|
|
29
|
+
|
|
30
|
+
Check out the [developer guide](/docs/docs-developer-guide-routing-libraries--docs) on how to integrate links with external routing libraries.
|
|
@@ -27,4 +27,4 @@ It is written in the first person when asking the user to agree to the terms and
|
|
|
27
27
|
|
|
28
28
|
- [WCAG 1.3.5](https://www.w3.org/WAI/WCAG21/Understanding/identify-input-purpose.html): It is clear for both users and programmatically what the purpose of a form field is.
|
|
29
29
|
|
|
30
|
-
Checkbox is an interactive element
|
|
30
|
+
Checkbox is an interactive element, and the [general requirements and guidelines for interactivity](/docs/docs-developer-guide-interactivity--docs) apply.
|
|
@@ -44,6 +44,8 @@
|
|
|
44
44
|
line-height: var(--ams-checkbox-line-height);
|
|
45
45
|
outline-offset: var(--ams-checkbox-outline-offset);
|
|
46
46
|
|
|
47
|
+
@include text-rendering;
|
|
48
|
+
|
|
47
49
|
&:hover {
|
|
48
50
|
color: var(--ams-checkbox-hover-color);
|
|
49
51
|
text-decoration-line: underline;
|
|
@@ -55,8 +57,6 @@
|
|
|
55
57
|
border-width: var(--ams-checkbox-checkmark-hover-border-width);
|
|
56
58
|
}
|
|
57
59
|
}
|
|
58
|
-
|
|
59
|
-
@include text-rendering;
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
// Default checked
|
|
@@ -2,15 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
# Description List
|
|
4
4
|
|
|
5
|
-
A collection of terms and their
|
|
5
|
+
A collection of terms and their descriptions.
|
|
6
6
|
|
|
7
7
|
## Design
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
The column for the
|
|
9
|
+
In a narrow window, descriptions appear indented below their term.
|
|
10
|
+
After that, they display in a two-column layout.
|
|
11
|
+
The column for the terms is as wide as the longest term, without wrapping.
|
|
12
|
+
Its width can be adjusted to be ‘large’ (50%), ‘medium’ (33%), or ‘small’ (20%), which also allows the terms to wrap.
|
|
12
13
|
|
|
13
|
-
|
|
14
|
+
The term is set in bold text.
|
|
14
15
|
|
|
15
16
|
## References
|
|
16
17
|
|