@utrecht/component-library-css 1.0.0-alpha.569 → 1.0.0-alpha.570
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/dist/html.css +5 -0
- package/dist/index.css +59 -12
- package/package.json +2 -2
package/dist/html.css
CHANGED
|
@@ -1009,6 +1009,10 @@ however browsers don't seem to have implemented great looking supixel tweening y
|
|
|
1009
1009
|
background-color: var(--utrecht-link-focus-background-color, transparent);
|
|
1010
1010
|
text-decoration-skip: none;
|
|
1011
1011
|
text-decoration-skip-ink: none;
|
|
1012
|
+
/*
|
|
1013
|
+
* WCAG SC 2.4.12: Focus Not Obscured
|
|
1014
|
+
* Use `z-index` to ensure the focus ring is stacked above adjecent elements with a `background`
|
|
1015
|
+
*/
|
|
1012
1016
|
/* - The browser default focus ring should apply when these CSS custom properties are not set.
|
|
1013
1017
|
* - Make the `box-shadow` value available, so components that have their own `box-shadow`
|
|
1014
1018
|
* can combine it with the focus ring box shadow.
|
|
@@ -1020,6 +1024,7 @@ however browsers don't seem to have implemented great looking supixel tweening y
|
|
|
1020
1024
|
outline-offset: var(--utrecht-focus-outline-offset, revert);
|
|
1021
1025
|
outline-style: var(--utrecht-focus-outline-style, revert);
|
|
1022
1026
|
outline-width: var(--utrecht-focus-outline-width, revert);
|
|
1027
|
+
z-index: var(--utrecht-stack-focus-z-index, 1);
|
|
1023
1028
|
}
|
|
1024
1029
|
.utrecht-html a:focus:not(:focus-visible) {
|
|
1025
1030
|
/* undo focus ring */
|
package/dist/index.css
CHANGED
|
@@ -663,6 +663,7 @@ so do not apply these styles to an HTML `<dialog>` element without `open` attrib
|
|
|
663
663
|
--utrecht-link-visited-color: var(--utrecht-breadcrumb-link-color);
|
|
664
664
|
--utrecht-link-visited-text-decoration: var(--utrecht-link-text-decoration);
|
|
665
665
|
--utrecht-link-color: var(--utrecht-breadcrumb-link-color);
|
|
666
|
+
--utrecht-link-placeholder-color: var(--utrecht-link-breadcrumb-link-disabled-color);
|
|
666
667
|
font-family: var(--utrecht-document-font-family, inherit);
|
|
667
668
|
font-size: var(--utrecht-breadcrumb-font-size);
|
|
668
669
|
text-transform: var(--utrecht-document-text-transform, inherit);
|
|
@@ -673,24 +674,32 @@ so do not apply these styles to an HTML `<dialog>` element without `open` attrib
|
|
|
673
674
|
}
|
|
674
675
|
|
|
675
676
|
.utrecht-breadcrumb__list {
|
|
676
|
-
block-size: var(--utrecht-breadcrumb-block-size);
|
|
677
677
|
display: flex;
|
|
678
|
+
flex-wrap: wrap;
|
|
679
|
+
min-block-size: var(--utrecht-breadcrumb-min-block-size);
|
|
678
680
|
}
|
|
679
681
|
|
|
680
|
-
|
|
682
|
+
.utrecht-breadcrumb__list--html-ol {
|
|
681
683
|
list-style: none;
|
|
682
684
|
margin-block-end: 0;
|
|
683
685
|
margin-block-start: 0;
|
|
684
686
|
padding-inline-start: 0;
|
|
685
687
|
}
|
|
686
688
|
|
|
689
|
+
.utrecht-breadcrumb__list--html-p {
|
|
690
|
+
margin-block-end: 0;
|
|
691
|
+
margin-block-start: 0;
|
|
692
|
+
}
|
|
693
|
+
|
|
687
694
|
.utrecht-breadcrumb__item {
|
|
688
695
|
block-size: 100%;
|
|
689
696
|
}
|
|
690
697
|
|
|
691
698
|
.utrecht-breadcrumb__link {
|
|
699
|
+
--utrecht-icon-size: var(--utrecht-breadcrumb-link-icon-size);
|
|
700
|
+
--utrecht-link-icon-size: var(--utrecht-breadcrumb-link-icon-size);
|
|
692
701
|
background-color: var(--utrecht-breadcrumb-link-background-color);
|
|
693
|
-
display: block;
|
|
702
|
+
display: inline-block;
|
|
694
703
|
padding-block-end: var(--utrecht-breadcrumb-item-padding-block-end, 8px);
|
|
695
704
|
padding-block-start: var(--utrecht-breadcrumb-item-padding-block-start, 8px);
|
|
696
705
|
padding-inline-end: var(--utrecht-breadcrumb-item-padding-inline-end, 8px);
|
|
@@ -701,6 +710,12 @@ ol.utrecht-breadcrumb__list {
|
|
|
701
710
|
--utrecht-link-placeholder-color: var(--utrecht-breadcrumb-link-disabled-color, var(--utrecht-breadcrumb-link-color));
|
|
702
711
|
background-color: var(--utrecht-breadcrumb-link-disabled-background-color, var(--utrecht-breadcrumb-link-background-color));
|
|
703
712
|
color: var(--utrecht-link-placeholder-color);
|
|
713
|
+
cursor: var(--utrecht-action-disabled-cursor, not-allowed);
|
|
714
|
+
}
|
|
715
|
+
|
|
716
|
+
.utrecht-breadcrumb__link--current:any-link {
|
|
717
|
+
/* `current` should override `disabled` */
|
|
718
|
+
cursor: var(--utrecht-action-inert-cursor, default);
|
|
704
719
|
}
|
|
705
720
|
|
|
706
721
|
/* stylelint-disable-next-line block-no-empty */
|
|
@@ -709,28 +724,43 @@ ol.utrecht-breadcrumb__list {
|
|
|
709
724
|
* Overwrite `style` attribute using "private" CSS variable for <li> hack:
|
|
710
725
|
* <li aria-hidden="true" hidden style="display: var(--_utrecht-breadcrumb-separator-display, block)">
|
|
711
726
|
*/
|
|
712
|
-
--_utrecht-breadcrumb-separator-display: flex;
|
|
727
|
+
--_utrecht-breadcrumb-separator-display: inline-flex;
|
|
728
|
+
--utrecht-icon-size: var(--utrecht-breadcrumb-separator-icon-size);
|
|
729
|
+
--utrecht-icon-color: var(--utrecht-breadcrumb-separator-icon-color);
|
|
730
|
+
align-items: center;
|
|
731
|
+
display: var(--_utrecht-breadcrumb-separator-display);
|
|
732
|
+
inline-size: fit-content;
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
.utrecht-breadcrumb__separator--html-li {
|
|
736
|
+
/*
|
|
737
|
+
* Overwrite `style` attribute using "private" CSS variable for <li> hack:
|
|
738
|
+
* <li aria-hidden="true" hidden style="display: var(--_utrecht-breadcrumb-separator-display, block)">
|
|
739
|
+
*/
|
|
740
|
+
--_utrecht-breadcrumb-separator-display: inline-flex;
|
|
713
741
|
--utrecht-icon-size: var(--utrecht-breadcrumb-separator-icon-size);
|
|
714
742
|
--utrecht-icon-color: var(--utrecht-breadcrumb-separator-icon-color);
|
|
715
743
|
align-items: center;
|
|
716
744
|
display: var(--_utrecht-breadcrumb-separator-display);
|
|
717
|
-
inline-size:
|
|
745
|
+
inline-size: fit-content;
|
|
718
746
|
}
|
|
719
747
|
|
|
720
748
|
.utrecht-breadcrumb--arrows {
|
|
721
749
|
/* https://css-tricks.com/triangle-breadcrumbs/ */
|
|
722
750
|
--utrecht-breadcrumb-arrow-size: 24px;
|
|
751
|
+
min-block-size: var(--utrecht-breadcrumb-min-block-size);
|
|
723
752
|
overflow: hidden;
|
|
724
753
|
}
|
|
725
754
|
.utrecht-breadcrumb--arrows .utrecht-breadcrumb__link {
|
|
755
|
+
background-color: var(--utrecht-breadcrumb-arrows-link-background-color);
|
|
726
756
|
padding-inline-end: 0;
|
|
727
757
|
position: relative;
|
|
728
758
|
}
|
|
729
759
|
.utrecht-breadcrumb--arrows .utrecht-breadcrumb__link::after,
|
|
730
760
|
.utrecht-breadcrumb--arrows .utrecht-breadcrumb__link::before {
|
|
731
761
|
block-size: 0;
|
|
732
|
-
border-block-end-width: var(--utrecht-breadcrumb-block-size);
|
|
733
|
-
border-block-start-width: var(--utrecht-breadcrumb-block-size);
|
|
762
|
+
border-block-end-width: var(--utrecht-breadcrumb-min-block-size);
|
|
763
|
+
border-block-start-width: var(--utrecht-breadcrumb-min-block-size);
|
|
734
764
|
border-color: transparent;
|
|
735
765
|
border-style: solid;
|
|
736
766
|
content: " ";
|
|
@@ -738,29 +768,31 @@ ol.utrecht-breadcrumb__list {
|
|
|
738
768
|
inline-size: 0;
|
|
739
769
|
inset-block-start: 50%;
|
|
740
770
|
inset-inline-start: 100%;
|
|
741
|
-
margin-block-start: calc(-1 * var(--utrecht-breadcrumb-block-size));
|
|
771
|
+
margin-block-start: calc(-1 * var(--utrecht-breadcrumb-min-block-size));
|
|
742
772
|
position: absolute;
|
|
743
773
|
}
|
|
744
774
|
.utrecht-breadcrumb--arrows .utrecht-breadcrumb__link::after {
|
|
745
|
-
border-inline-start-color: var(--utrecht-breadcrumb-link-background-color);
|
|
775
|
+
border-inline-start-color: var(--utrecht-breadcrumb-arrows-link-background-color);
|
|
746
776
|
border-inline-start-width: var(--utrecht-breadcrumb-arrow-size);
|
|
747
777
|
z-index: 2;
|
|
748
778
|
}
|
|
749
779
|
.utrecht-breadcrumb--arrows .utrecht-breadcrumb__link::before {
|
|
750
780
|
border-inline-start-color: var(--utrecht-document-background-color);
|
|
751
781
|
border-inline-start-width: var(--utrecht-breadcrumb-arrow-size);
|
|
752
|
-
margin-block-start: calc(-1 * var(--utrecht-breadcrumb-block-size));
|
|
782
|
+
margin-block-start: calc(-1 * var(--utrecht-breadcrumb-min-block-size));
|
|
753
783
|
margin-inline-start: 1px;
|
|
754
784
|
z-index: 1;
|
|
755
785
|
}
|
|
756
786
|
.utrecht-breadcrumb--arrows .utrecht-breadcrumb__link--focus,
|
|
757
787
|
.utrecht-breadcrumb--arrows .utrecht-breadcrumb__link:focus {
|
|
758
|
-
background-color: var(--utrecht-breadcrumb-link-focus-background-color);
|
|
788
|
+
--utrecht-link-focus-background-color: var(--utrecht-breadcrumb-arrows-link-focus-background-color);
|
|
789
|
+
background-color: var(--utrecht-breadcrumb-arrows-link-focus-background-color);
|
|
759
790
|
}
|
|
760
791
|
.utrecht-breadcrumb--arrows .utrecht-breadcrumb__link--focus::after,
|
|
761
792
|
.utrecht-breadcrumb--arrows .utrecht-breadcrumb__link:focus::after {
|
|
762
|
-
border-inline-start-color: var(--utrecht-breadcrumb-link-focus-background-color);
|
|
793
|
+
border-inline-start-color: var(--utrecht-breadcrumb-arrows-link-focus-background-color);
|
|
763
794
|
}
|
|
795
|
+
.utrecht-breadcrumb--arrows .utrecht-breadcrumb__link ~ .utrecht-breadcrumb__link,
|
|
764
796
|
.utrecht-breadcrumb--arrows .utrecht-breadcrumb__item ~ .utrecht-breadcrumb__item .utrecht-breadcrumb__link {
|
|
765
797
|
padding-inline-start: calc(var(--utrecht-breadcrumb-item-padding-inline-start) + var(--utrecht-breadcrumb-arrow-size));
|
|
766
798
|
}
|
|
@@ -3521,6 +3553,10 @@ however browsers don't seem to have implemented great looking supixel tweening y
|
|
|
3521
3553
|
}
|
|
3522
3554
|
|
|
3523
3555
|
.utrecht-link-button--focus-visible, .utrecht-link-button--html-button:focus-visible {
|
|
3556
|
+
/*
|
|
3557
|
+
* WCAG SC 2.4.12: Focus Not Obscured
|
|
3558
|
+
* Use `z-index` to ensure the focus ring is stacked above adjecent elements with a `background`
|
|
3559
|
+
*/
|
|
3524
3560
|
/* - The browser default focus ring should apply when these CSS custom properties are not set.
|
|
3525
3561
|
* - Make the `box-shadow` value available, so components that have their own `box-shadow`
|
|
3526
3562
|
* can combine it with the focus ring box shadow.
|
|
@@ -3532,6 +3568,7 @@ however browsers don't seem to have implemented great looking supixel tweening y
|
|
|
3532
3568
|
outline-offset: var(--utrecht-focus-outline-offset, revert);
|
|
3533
3569
|
outline-style: var(--utrecht-focus-outline-style, revert);
|
|
3534
3570
|
outline-width: var(--utrecht-focus-outline-width, revert);
|
|
3571
|
+
z-index: var(--utrecht-stack-focus-z-index, 1);
|
|
3535
3572
|
}
|
|
3536
3573
|
|
|
3537
3574
|
.utrecht-link-button--active, .utrecht-link-button--html-button:not(:disabled):active {
|
|
@@ -3785,6 +3822,10 @@ however browsers don't seem to have implemented great looking supixel tweening y
|
|
|
3785
3822
|
}
|
|
3786
3823
|
|
|
3787
3824
|
.utrecht-link--focus-visible {
|
|
3825
|
+
/*
|
|
3826
|
+
* WCAG SC 2.4.12: Focus Not Obscured
|
|
3827
|
+
* Use `z-index` to ensure the focus ring is stacked above adjecent elements with a `background`
|
|
3828
|
+
*/
|
|
3788
3829
|
/* - The browser default focus ring should apply when these CSS custom properties are not set.
|
|
3789
3830
|
* - Make the `box-shadow` value available, so components that have their own `box-shadow`
|
|
3790
3831
|
* can combine it with the focus ring box shadow.
|
|
@@ -3796,6 +3837,7 @@ however browsers don't seem to have implemented great looking supixel tweening y
|
|
|
3796
3837
|
outline-offset: var(--utrecht-focus-outline-offset, revert);
|
|
3797
3838
|
outline-style: var(--utrecht-focus-outline-style, revert);
|
|
3798
3839
|
outline-width: var(--utrecht-focus-outline-width, revert);
|
|
3840
|
+
z-index: var(--utrecht-stack-focus-z-index, 1);
|
|
3799
3841
|
}
|
|
3800
3842
|
|
|
3801
3843
|
/* `:focus` should only apply to links with `href`, not on disabled links */
|
|
@@ -3807,6 +3849,10 @@ however browsers don't seem to have implemented great looking supixel tweening y
|
|
|
3807
3849
|
background-color: var(--utrecht-link-focus-background-color, transparent);
|
|
3808
3850
|
text-decoration-skip: none;
|
|
3809
3851
|
text-decoration-skip-ink: none;
|
|
3852
|
+
/*
|
|
3853
|
+
* WCAG SC 2.4.12: Focus Not Obscured
|
|
3854
|
+
* Use `z-index` to ensure the focus ring is stacked above adjecent elements with a `background`
|
|
3855
|
+
*/
|
|
3810
3856
|
/* - The browser default focus ring should apply when these CSS custom properties are not set.
|
|
3811
3857
|
* - Make the `box-shadow` value available, so components that have their own `box-shadow`
|
|
3812
3858
|
* can combine it with the focus ring box shadow.
|
|
@@ -3818,6 +3864,7 @@ however browsers don't seem to have implemented great looking supixel tweening y
|
|
|
3818
3864
|
outline-offset: var(--utrecht-focus-outline-offset, revert);
|
|
3819
3865
|
outline-style: var(--utrecht-focus-outline-style, revert);
|
|
3820
3866
|
outline-width: var(--utrecht-focus-outline-width, revert);
|
|
3867
|
+
z-index: var(--utrecht-stack-focus-z-index, 1);
|
|
3821
3868
|
}
|
|
3822
3869
|
|
|
3823
3870
|
.utrecht-link--html-span:focus:not(:focus-visible),
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.0.0-alpha.
|
|
2
|
+
"version": "1.0.0-alpha.570",
|
|
3
3
|
"author": "Community for NL Design System",
|
|
4
4
|
"description": "Component library bundle for the Municipality of Utrecht based on the NL Design System architecture",
|
|
5
5
|
"license": "EUPL-1.2",
|
|
@@ -26,5 +26,5 @@
|
|
|
26
26
|
"clean": "rimraf dist/"
|
|
27
27
|
},
|
|
28
28
|
"main": "dist/index.css",
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "846acda8d46c731adefec5b01e696c2d89bdc55a"
|
|
30
30
|
}
|