qpp-style 9.18.1 → 9.18.2
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/components/NotificationBanner/CollapsedView.js +29 -22
- package/components/SideNav/Links/NavLinkDrawer.jsx +1 -1
- package/coverage/clover.xml +78 -79
- package/coverage/coverage-final.json +73 -73
- package/coverage/lcov-report/index.html +10 -10
- package/coverage/lcov-report/react/components/Accordion/index.html +1 -1
- package/coverage/lcov-report/react/components/Accordion/index.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Button/index.html +1 -1
- package/coverage/lcov-report/react/components/Button/index.js.html +1 -1
- package/coverage/lcov-report/react/components/Dropdown/index.html +1 -1
- package/coverage/lcov-report/react/components/Dropdown/index.js.html +1 -1
- package/coverage/lcov-report/react/components/Error/Collapsible.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Error/ErrorUI.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Error/error.js.html +1 -1
- package/coverage/lcov-report/react/components/Error/index.html +1 -1
- package/coverage/lcov-report/react/components/Footer/FooterUI.jsx.html +2 -2
- package/coverage/lcov-report/react/components/Footer/SocialLinks.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Footer/Subscribe.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Footer/footer.js.html +1 -1
- package/coverage/lcov-report/react/components/Footer/index.html +1 -1
- package/coverage/lcov-report/react/components/GovBanner/index.html +1 -1
- package/coverage/lcov-report/react/components/GovBanner/index.js.html +1 -1
- package/coverage/lcov-report/react/components/Header/HeaderAccountMenu.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Header/HeaderCancel.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Header/HeaderContainer.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Header/HeaderLogo.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Header/HeaderMenuButton.js.html +1 -1
- package/coverage/lcov-report/react/components/Header/HeaderMenuItem.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Header/HeaderMenuLink.js.html +1 -1
- package/coverage/lcov-report/react/components/Header/HeaderMenuSignOutButton.js.html +1 -1
- package/coverage/lcov-report/react/components/Header/HeaderMobileButton.js.html +1 -1
- package/coverage/lcov-report/react/components/Header/HeaderUI.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Header/HelpIcon.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Header/ImpersonatorBanner.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Header/NavigationButtonIcon.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Header/header.js.html +1 -1
- package/coverage/lcov-report/react/components/Header/hooks.js.html +1 -1
- package/coverage/lcov-report/react/components/Header/index.html +1 -1
- package/coverage/lcov-report/react/components/Header/utag-helpers.js.html +1 -1
- package/coverage/lcov-report/react/components/Infotip/Infotip.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Infotip/InfotipIcon.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Infotip/index.html +1 -1
- package/coverage/lcov-report/react/components/Infotip/index.js.html +1 -1
- package/coverage/lcov-report/react/components/Modal/LegacyModal.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Modal/Modal.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Modal/index.html +1 -1
- package/coverage/lcov-report/react/components/Modal/index.jsx.html +1 -1
- package/coverage/lcov-report/react/components/NotificationBanner/CollapsedView.js.html +10 -10
- package/coverage/lcov-report/react/components/NotificationBanner/ExpandedView.js.html +1 -1
- package/coverage/lcov-report/react/components/NotificationBanner/index.html +11 -11
- package/coverage/lcov-report/react/components/NotificationBanner/index.js.html +1 -1
- package/coverage/lcov-report/react/components/SanitizedContent/index.html +1 -1
- package/coverage/lcov-report/react/components/SanitizedContent/index.jsx.html +1 -1
- package/coverage/lcov-report/react/components/SessionDialog/index.html +1 -1
- package/coverage/lcov-report/react/components/SessionDialog/sessionDialog.js.html +1 -1
- package/coverage/lcov-report/react/components/SessionDialogUI.jsx.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/AnimationGroup/AnimationGroup.jsx.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/AnimationGroup/index.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Chart/ScoreChart.jsx.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Chart/index.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Chart/index.js.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Content/LevelOneContent.jsx.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Content/LevelTwoContent.jsx.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Content/SelectRole/index.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Content/SelectRole/index.js.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Content/SelectRole/utils.js.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Content/index.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Content/index.js.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Details/IndividualDetails.jsx.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Details/PracticeDetails.jsx.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Details/index.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Details/index.js.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Links/CmsSwitchLink.jsx.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Links/NavItemInline.jsx.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Links/NavLinkContainer.jsx.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Links/NavLinkDrawer.jsx.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Links/NavLinkInline.jsx.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Links/NavLinkToggle.jsx.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Links/index.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Links/index.js.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/UI/SideNavUI.jsx.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/UI/index.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/UI/index.js.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/helpers.js.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/index.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/index.js.html +1 -1
- package/coverage/lcov-report/react/components/Tooltip/Tooltip.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Tooltip/index.html +1 -1
- package/coverage/lcov-report/react/components/Tooltip/index.js.html +1 -1
- package/coverage/lcov-report/react/components/Tooltip/position.js.html +1 -1
- package/coverage/lcov-report/react/components/hooks/index.html +1 -1
- package/coverage/lcov-report/react/components/hooks/useGetConfig.js.html +1 -1
- package/coverage/lcov-report/react/components/index.html +1 -1
- package/coverage/lcov-report/react/index.html +1 -1
- package/coverage/lcov-report/react/index.js.html +1 -1
- package/coverage/lcov-report/react/lib/Chevron.jsx.html +1 -1
- package/coverage/lcov-report/react/lib/SvgComponents.jsx.html +1 -1
- package/coverage/lcov-report/react/lib/index.html +1 -1
- package/coverage/lcov-report/react/lib/svg-definitions.svg.html +1 -1
- package/coverage/lcov-report/react/session/index.html +1 -1
- package/coverage/lcov-report/react/session/index.js.html +1 -1
- package/coverage/lcov-report/react/session/logout.js.html +1 -1
- package/coverage/lcov-report/react/session/refresh.js.html +1 -1
- package/coverage/lcov-report/react/session/ttl.js.html +1 -1
- package/coverage/lcov.info +2 -3
- package/dist/browser.js +1 -1
- package/dist/browser.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/react/index.js +1 -1
- package/dist/react/index.js.map +1 -1
- package/package.json +13 -15
- package/styles/qppds/base/_typography.scss +12 -0
- package/styles/qppds/components/_checkbox.scss +199 -0
- package/styles/qppds/components/_radio-button.scss +184 -0
- package/styles/qppds/components/index.scss +2 -0
- package/styles/qppds/settings/variables/_layout.scss +5 -3
- package/styles/qppds/utilities/_list-style.scss +18 -0
- package/styles/qppds/utilities/index.scss +1 -0
- package/coverage/lcov-report/components/Accordion/index.html +0 -116
- package/coverage/lcov-report/components/Accordion/index.jsx.html +0 -364
- package/coverage/lcov-report/components/Error/Collapsible.jsx.html +0 -349
- package/coverage/lcov-report/components/Error/ErrorUI.jsx.html +0 -178
- package/coverage/lcov-report/components/Error/index.html +0 -131
- package/coverage/lcov-report/components/Footer/FooterUI.jsx.html +0 -880
- package/coverage/lcov-report/components/Footer/LegacyFooterUI.jsx.html +0 -667
- package/coverage/lcov-report/components/Footer/SocialLinks.jsx.html +0 -265
- package/coverage/lcov-report/components/Footer/Subscribe.jsx.html +0 -187
- package/coverage/lcov-report/components/Footer/index.html +0 -161
- package/coverage/lcov-report/components/Infotip/Infotip.jsx.html +0 -310
- package/coverage/lcov-report/components/Infotip/InfotipIcon.jsx.html +0 -208
- package/coverage/lcov-report/components/Infotip/index.html +0 -146
- package/coverage/lcov-report/components/Infotip/index.js.html +0 -94
- package/coverage/lcov-report/components/Modal/LegacyModal.jsx.html +0 -301
- package/coverage/lcov-report/components/Modal/Modal.jsx.html +0 -505
- package/coverage/lcov-report/components/Modal/index.html +0 -146
- package/coverage/lcov-report/components/Modal/index.jsx.html +0 -151
- package/coverage/lcov-report/components/SanitizedContent/index.html +0 -116
- package/coverage/lcov-report/components/SanitizedContent/index.jsx.html +0 -685
- package/coverage/lcov-report/components/SessionDialogUI.jsx.html +0 -868
- package/coverage/lcov-report/components/SideNav/AnimationGroup/AnimationGroup.jsx.html +0 -166
- package/coverage/lcov-report/components/SideNav/AnimationGroup/index.html +0 -116
- package/coverage/lcov-report/components/SideNav/Chart/ScoreChart.jsx.html +0 -889
- package/coverage/lcov-report/components/SideNav/Chart/index.html +0 -131
- package/coverage/lcov-report/components/SideNav/Chart/index.js.html +0 -94
- package/coverage/lcov-report/components/SideNav/Content/LevelOneContent.jsx.html +0 -709
- package/coverage/lcov-report/components/SideNav/Content/LevelTwoContent.jsx.html +0 -733
- package/coverage/lcov-report/components/SideNav/Content/index.html +0 -146
- package/coverage/lcov-report/components/SideNav/Content/index.js.html +0 -97
- package/coverage/lcov-report/components/SideNav/Details/IndividualDetails.jsx.html +0 -139
- package/coverage/lcov-report/components/SideNav/Details/PracticeDetails.jsx.html +0 -220
- package/coverage/lcov-report/components/SideNav/Details/index.html +0 -146
- package/coverage/lcov-report/components/SideNav/Details/index.js.html +0 -97
- package/coverage/lcov-report/components/SideNav/Links/CmsSwitchLink.jsx.html +0 -208
- package/coverage/lcov-report/components/SideNav/Links/NavItemInline.jsx.html +0 -247
- package/coverage/lcov-report/components/SideNav/Links/NavLinkContainer.jsx.html +0 -199
- package/coverage/lcov-report/components/SideNav/Links/NavLinkDrawer.jsx.html +0 -832
- package/coverage/lcov-report/components/SideNav/Links/NavLinkInline.jsx.html +0 -406
- package/coverage/lcov-report/components/SideNav/Links/NavLinkToggle.jsx.html +0 -187
- package/coverage/lcov-report/components/SideNav/Links/index.html +0 -206
- package/coverage/lcov-report/components/SideNav/Links/index.js.html +0 -124
- package/coverage/lcov-report/components/SideNav/UI/SideNavUI.jsx.html +0 -1084
- package/coverage/lcov-report/components/SideNav/UI/index.html +0 -131
- package/coverage/lcov-report/components/SideNav/UI/index.js.html +0 -94
- package/coverage/lcov-report/components/SideNav/helpers.js.html +0 -238
- package/coverage/lcov-report/components/SideNav/index.html +0 -116
- package/coverage/lcov-report/components/Tooltip/Tooltip.jsx.html +0 -349
- package/coverage/lcov-report/components/Tooltip/index.html +0 -146
- package/coverage/lcov-report/components/Tooltip/index.js.html +0 -94
- package/coverage/lcov-report/components/Tooltip/position.js.html +0 -289
- package/coverage/lcov-report/components/hooks/index.html +0 -116
- package/coverage/lcov-report/components/hooks/useGetConfig.js.html +0 -307
- package/coverage/lcov-report/components/index.html +0 -116
- package/coverage/lcov-report/lib/Chevron.jsx.html +0 -181
- package/coverage/lcov-report/lib/SvgComponents.jsx.html +0 -1702
- package/coverage/lcov-report/lib/index.html +0 -146
- package/coverage/lcov-report/lib/svg-definitions.svg.html +0 -460
- package/coverage/lcov-report/react/components/Footer/LegacyFooterUI.jsx.html +0 -667
- package/coverage/lcov-report/session/index.html +0 -161
- package/coverage/lcov-report/session/index.js.html +0 -100
- package/coverage/lcov-report/session/logout.js.html +0 -298
- package/coverage/lcov-report/session/refresh.js.html +0 -232
- package/coverage/lcov-report/session/ttl.js.html +0 -196
- package/styles/components/_footer.scss +0 -593
- package/styles/components/_header.scss +0 -890
- package/styles/components/_sidebar.scss +0 -8
- package/styles/components/sidebar/_animations.scss +0 -38
- package/styles/components/sidebar/_cms.scss +0 -61
- package/styles/components/sidebar/_details.scss +0 -58
- package/styles/components/sidebar/_links.scss +0 -415
- package/styles/components/sidebar/_sidebar-animation.scss +0 -121
- package/styles/components/sidebar/_sidebar-tooltip.scss +0 -33
- package/styles/components/sidebar/_sidebar.scss +0 -141
- package/styles/components/sidebar/project-specific/_wi.scss +0 -42
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "qpp-style",
|
|
3
|
-
"version": "9.18.
|
|
3
|
+
"version": "9.18.2",
|
|
4
4
|
"description": "Shared style guide across the QPP program.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"homepage": "https://cmsgov.github.io/qpp-style",
|
|
@@ -26,23 +26,21 @@
|
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@babel/cli": "^7.18.10",
|
|
29
|
-
"@babel/core": "^7.18.
|
|
29
|
+
"@babel/core": "^7.18.13",
|
|
30
30
|
"@babel/preset-env": "^7.18.10",
|
|
31
31
|
"@babel/preset-react": "^7.18.6",
|
|
32
32
|
"@babel/register": "^7.18.9",
|
|
33
|
-
"@storybook/addon-a11y": "^6.5.
|
|
34
|
-
"@storybook/addon-actions": "^6.5.
|
|
35
|
-
"@storybook/addon-backgrounds": "^6.5.
|
|
36
|
-
"@storybook/addon-docs": "^6.5.
|
|
33
|
+
"@storybook/addon-a11y": "^6.5.10",
|
|
34
|
+
"@storybook/addon-actions": "^6.5.10",
|
|
35
|
+
"@storybook/addon-backgrounds": "^6.5.10",
|
|
36
|
+
"@storybook/addon-docs": "^6.5.10",
|
|
37
37
|
"@storybook/addon-knobs": "^6.4.0",
|
|
38
|
-
"@storybook/addon-links": "^6.5.
|
|
38
|
+
"@storybook/addon-links": "^6.5.10",
|
|
39
39
|
"@storybook/addon-postcss": "^2.0.0",
|
|
40
|
-
"@storybook/addon-storysource": "^6.5.
|
|
41
|
-
"@storybook/addon-viewport": "^6.5.
|
|
42
|
-
"@storybook/addons": "^6.5.
|
|
43
|
-
"@storybook/
|
|
44
|
-
"@storybook/manager-webpack5": "^6.5.10",
|
|
45
|
-
"@storybook/react": "^6.5.9",
|
|
40
|
+
"@storybook/addon-storysource": "^6.5.10",
|
|
41
|
+
"@storybook/addon-viewport": "^6.5.10",
|
|
42
|
+
"@storybook/addons": "^6.5.10",
|
|
43
|
+
"@storybook/react": "^6.5.10",
|
|
46
44
|
"@testing-library/react": "^12.1.2",
|
|
47
45
|
"autoprefixer": "^10.4.8",
|
|
48
46
|
"babel-eslint": "^10.1.0",
|
|
@@ -74,7 +72,7 @@
|
|
|
74
72
|
"react-test-renderer": "^17.0.2",
|
|
75
73
|
"regenerator-runtime": "^0.13.9",
|
|
76
74
|
"rimraf": "^3.0.2",
|
|
77
|
-
"sass": "^1.
|
|
75
|
+
"sass": "^1.54.6",
|
|
78
76
|
"sass-loader": "^13.0.2",
|
|
79
77
|
"sinon": "^12.0.1",
|
|
80
78
|
"style-loader": "^3.3.1",
|
|
@@ -112,7 +110,7 @@
|
|
|
112
110
|
"d3-selection": "^1.4.2",
|
|
113
111
|
"d3-shape": "^1.3.7",
|
|
114
112
|
"jwt-decode": "^3.1.2",
|
|
115
|
-
"preact": "^10.6
|
|
113
|
+
"preact": "^10.10.6",
|
|
116
114
|
"prop-types": "^15.8.1",
|
|
117
115
|
"react-modal": "^3.14.4",
|
|
118
116
|
"retry": "^0.13.1",
|
|
@@ -45,6 +45,18 @@
|
|
|
45
45
|
@include input-label;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
+
.qpp-legend {
|
|
49
|
+
@include input-label;
|
|
50
|
+
margin-top: $spacing-8;
|
|
51
|
+
// override legacy globals for legend
|
|
52
|
+
margin-bottom: 0;
|
|
53
|
+
border: 0;
|
|
54
|
+
border-bottom: 0;
|
|
55
|
+
padding: 0;
|
|
56
|
+
line-height: inherit;
|
|
57
|
+
width: auto;
|
|
58
|
+
}
|
|
59
|
+
|
|
48
60
|
@for $i from 1 through length($headings) {
|
|
49
61
|
$heading: nth($headings, $i);
|
|
50
62
|
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
@use 'sass:math';
|
|
2
|
+
@import '../settings/index';
|
|
3
|
+
|
|
4
|
+
$forced-color-active: active;
|
|
5
|
+
|
|
6
|
+
/* stylelint-disable selector-max-specificity, max-nesting-depth, selector-max-compound-selectors, value-list-comma-newline-after */
|
|
7
|
+
.qpp-c-checkbox,
|
|
8
|
+
.qppds .qpp-c-checkbox,
|
|
9
|
+
.qpp-prose .qpp-c-checkbox {
|
|
10
|
+
background: $white;
|
|
11
|
+
|
|
12
|
+
.qpp-c-checkbox__label {
|
|
13
|
+
font-size: $font-size-16;
|
|
14
|
+
line-height: $line-height-lg;
|
|
15
|
+
&::before,
|
|
16
|
+
&::after {
|
|
17
|
+
width: $spacing-20;
|
|
18
|
+
height: $spacing-20;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&--small {
|
|
23
|
+
.qpp-c-checkbox__label {
|
|
24
|
+
font-size: $font-size-14;
|
|
25
|
+
line-height: $line-height-md;
|
|
26
|
+
&::before,
|
|
27
|
+
&::after {
|
|
28
|
+
width: $spacing-16;
|
|
29
|
+
height: $spacing-16;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&--indeterminate {
|
|
35
|
+
.qpp-c-checkbox__input {
|
|
36
|
+
&:checked + [class*='__label']::before,
|
|
37
|
+
&:checked:disabled + [class*='__label']::before,
|
|
38
|
+
&:checked[aria-disabled='true'] + [class*='__label']::before {
|
|
39
|
+
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' role='img' stroke='transparent' fill='white' viewBox='1.5 1.5 21 21'%3E%3Cpath fill-rule='evenodd' d='M4 11h16v2H4z'/%3E%3C/svg%3E"),
|
|
40
|
+
linear-gradient(transparent, transparent);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.qpp-c-checkbox__input {
|
|
47
|
+
// The actual input element is only visible to screen readers, because
|
|
48
|
+
// all visual styling is done via the label.
|
|
49
|
+
@include visually-hidden;
|
|
50
|
+
+ [class*='__label'] {
|
|
51
|
+
&:hover {
|
|
52
|
+
&::before {
|
|
53
|
+
background-color: $gray-04;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&:active {
|
|
58
|
+
&::after {
|
|
59
|
+
box-shadow: 0 0 0 0.5rem $blue-10;
|
|
60
|
+
transition: box-shadow 0.08s ease;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
&:focus {
|
|
66
|
+
outline: none;
|
|
67
|
+
|
|
68
|
+
+ [class*='__label']::before {
|
|
69
|
+
@include focus-ring;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
&:disabled,
|
|
74
|
+
&[aria-disabled='true'] {
|
|
75
|
+
+ [class*='__label'] {
|
|
76
|
+
color: rgba(27, 27, 27, 0.3); // TODO: DS styles
|
|
77
|
+
|
|
78
|
+
&:active {
|
|
79
|
+
&::after {
|
|
80
|
+
box-shadow: 0 0 0 0 transparent;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
+ [class*='__label'],
|
|
85
|
+
+ [class*='__label']::before {
|
|
86
|
+
cursor: not-allowed;
|
|
87
|
+
}
|
|
88
|
+
+ [class*='__label']::before {
|
|
89
|
+
background-color: $gray-10;
|
|
90
|
+
border: rem(1px) solid $gray-10;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
// Checkboxes with tap-friendly targets
|
|
95
|
+
&--tile {
|
|
96
|
+
// TODO: designs and styles for "tile" mode to support friendler
|
|
97
|
+
// mobile tap targets for checkboxes and radios (USWDS feature).
|
|
98
|
+
+ [class*='__label'] {
|
|
99
|
+
background-color: $white;
|
|
100
|
+
border: 2px solid rgba(27, 27, 27, 0.3);
|
|
101
|
+
color: #1b1b1b;
|
|
102
|
+
border-radius: 0.25rem;
|
|
103
|
+
margin-top: $spacing-8;
|
|
104
|
+
padding: $spacing-12 $spacing-16 $spacing-12 $spacing-40;
|
|
105
|
+
|
|
106
|
+
&::before {
|
|
107
|
+
left: $spacing-8;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
&:checked + [class*='__label']::before,
|
|
113
|
+
&:checked:disabled + [class*='__label']::before,
|
|
114
|
+
&:checked[aria-disabled='true'] + [class*='__label']::before {
|
|
115
|
+
background-position: center center;
|
|
116
|
+
background-size: contain;
|
|
117
|
+
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' role='img' stroke='transparent' fill='white' viewBox='1.5 1.5 21 21'%3E%3Cpath d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E"),
|
|
118
|
+
linear-gradient(transparent, transparent);
|
|
119
|
+
background-repeat: no-repeat;
|
|
120
|
+
@media print {
|
|
121
|
+
background-image: none;
|
|
122
|
+
background-color: $white;
|
|
123
|
+
content: '\2714';
|
|
124
|
+
text-align: center;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
@media (forced-colors: $forced-color-active) {
|
|
128
|
+
background-color: ButtonText;
|
|
129
|
+
|
|
130
|
+
&--tile {
|
|
131
|
+
background-color: ButtonText;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
&:checked:not(:disabled, [aria-disabled='true']) {
|
|
137
|
+
+ [class*='__label']::before {
|
|
138
|
+
background-color: $blue-60;
|
|
139
|
+
border: rem(1px) solid $blue-60;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
&:checked:not(:disabled, [aria-disabled='true']) + [class*='__label'] {
|
|
144
|
+
&:hover {
|
|
145
|
+
&::before {
|
|
146
|
+
background-color: $blue-70;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.qpp-c-checkbox__label,
|
|
153
|
+
.qppds .qpp-c-checkbox__label,
|
|
154
|
+
.qpp-prose .qpp-c-checkbox__label {
|
|
155
|
+
cursor: pointer;
|
|
156
|
+
display: inherit;
|
|
157
|
+
font-weight: $font-regular;
|
|
158
|
+
margin-top: $spacing-12;
|
|
159
|
+
padding-left: $spacing-32;
|
|
160
|
+
position: relative;
|
|
161
|
+
|
|
162
|
+
&::before {
|
|
163
|
+
content: ' ';
|
|
164
|
+
background: $white;
|
|
165
|
+
border: 1px solid $gray-80;
|
|
166
|
+
border-radius: 3px;
|
|
167
|
+
box-sizing: border-box;
|
|
168
|
+
display: block;
|
|
169
|
+
top: 0;
|
|
170
|
+
left: 0;
|
|
171
|
+
margin-left: 0;
|
|
172
|
+
margin-top: 0;
|
|
173
|
+
position: absolute;
|
|
174
|
+
z-index: 1;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
&::after {
|
|
178
|
+
content: ' ';
|
|
179
|
+
background: none;
|
|
180
|
+
border-radius: 1rem;
|
|
181
|
+
box-sizing: border-box;
|
|
182
|
+
display: block;
|
|
183
|
+
top: 0;
|
|
184
|
+
left: 0;
|
|
185
|
+
margin-left: 0;
|
|
186
|
+
margin-top: 0;
|
|
187
|
+
position: absolute;
|
|
188
|
+
z-index: 0;
|
|
189
|
+
box-shadow: 0 0 0 0 transparent;
|
|
190
|
+
transition: box-shadow 0.5s ease 0.04s;
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.qpp-c-checkbox__label-description {
|
|
195
|
+
display: block;
|
|
196
|
+
//font-size: $font-size-base;
|
|
197
|
+
margin-top: $spacing-16;
|
|
198
|
+
}
|
|
199
|
+
/* stylelint-enable selector-max-specificity, max-nesting-depth, selector-max-compound-selectors, value-list-comma-newline-after */
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
@use 'sass:math';
|
|
2
|
+
@import '../settings/index';
|
|
3
|
+
|
|
4
|
+
/* stylelint-disable selector-max-specificity, max-nesting-depth, selector-max-compound-selectors, value-list-comma-newline-after */
|
|
5
|
+
.qpp-c-radio,
|
|
6
|
+
.qppds .qpp-c-radio,
|
|
7
|
+
.qpp-prose .qpp-c-radio {
|
|
8
|
+
background: $white;
|
|
9
|
+
|
|
10
|
+
&__label {
|
|
11
|
+
font-size: $font-size-16;
|
|
12
|
+
line-height: $line-height-lg;
|
|
13
|
+
&::before,
|
|
14
|
+
&::after {
|
|
15
|
+
width: $spacing-20;
|
|
16
|
+
height: $spacing-20;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&--small {
|
|
21
|
+
.qpp-c-radio__label {
|
|
22
|
+
font-size: $font-size-14;
|
|
23
|
+
line-height: $line-height-md;
|
|
24
|
+
&::before,
|
|
25
|
+
&::after {
|
|
26
|
+
width: $spacing-16;
|
|
27
|
+
height: $spacing-16;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&__input {
|
|
33
|
+
// The actual input element is only visible to screen readers, because
|
|
34
|
+
// all visual styling is done via the label.
|
|
35
|
+
@include visually-hidden;
|
|
36
|
+
background-color: $white;
|
|
37
|
+
|
|
38
|
+
&:focus {
|
|
39
|
+
outline: none;
|
|
40
|
+
|
|
41
|
+
+ [class*='__label']::before {
|
|
42
|
+
@include focus-ring;
|
|
43
|
+
border: 0;
|
|
44
|
+
border-radius: 99rem;
|
|
45
|
+
box-shadow: 0 0 0 2px $blue-70, 0 0 0 4px $blue-10;
|
|
46
|
+
background-color: $white;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&:checked {
|
|
50
|
+
+ [class*='__label']::before {
|
|
51
|
+
box-shadow: 0 0 0 2px $blue-70, inset 0 0 0 3px $white,
|
|
52
|
+
0 0 0 5px $blue-10;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&:disabled,
|
|
58
|
+
&[aria-disabled='true'] {
|
|
59
|
+
+ [class*='__label'] {
|
|
60
|
+
cursor: not-allowed;
|
|
61
|
+
color: rgba(27, 27, 27, 0.3);
|
|
62
|
+
&::before {
|
|
63
|
+
box-shadow: 0 0 0 2px $gray-20, inset 0 0 0 3px $white;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
&:hover:not(:disabled) {
|
|
69
|
+
+ [class*='__label']::before {
|
|
70
|
+
box-shadow: 0 0 0 2px $blue-80, inset 0 0 0 3px $white;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
&:checked {
|
|
74
|
+
+ [class*='__label']::before {
|
|
75
|
+
box-shadow: 0 0 0 2px $blue-80, inset 0 0 0 3px $white;
|
|
76
|
+
background-color: $blue-80;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
&:focus {
|
|
80
|
+
+ [class*='__label']::before {
|
|
81
|
+
box-shadow: 0 0 0 2px $blue-80, inset 0 0 0 3px $white,
|
|
82
|
+
0 0 0 5px $blue-10;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
&:not(:checked) {
|
|
88
|
+
+ [class*='__label']::before {
|
|
89
|
+
box-shadow: 0 0 0 2px $gray-80;
|
|
90
|
+
background-color: $gray-04;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
&:active:not(:disabled, :checked) {
|
|
96
|
+
+ [class*='__label'] {
|
|
97
|
+
&::after {
|
|
98
|
+
box-shadow: 0 0 0 0.5rem $blue-10;
|
|
99
|
+
transition: box-shadow 0.08s ease;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
// Radios with tap-friendly targets
|
|
105
|
+
&--tile {
|
|
106
|
+
// TODO: designs and styles for "tile" mode to support friendler
|
|
107
|
+
// mobile tap targets for checkboxes and radios (USWDS feature).
|
|
108
|
+
+ [class*='__label'] {
|
|
109
|
+
background-color: $white;
|
|
110
|
+
border: 2px solid rgba(27, 27, 27, 0.3);
|
|
111
|
+
color: #1b1b1b;
|
|
112
|
+
border-radius: 0.25rem;
|
|
113
|
+
margin-top: $spacing-8;
|
|
114
|
+
padding: $spacing-12 $spacing-16 $spacing-12 $spacing-40;
|
|
115
|
+
|
|
116
|
+
&::before {
|
|
117
|
+
left: $spacing-8;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
&:checked + [class*='__label']::before {
|
|
123
|
+
background-color: $blue-60;
|
|
124
|
+
box-shadow: 0 0 0 2px $blue-60, inset 0 0 0 3px $white;
|
|
125
|
+
@media print {
|
|
126
|
+
box-shadow: 0 0 0 2px $blue-60, inset 0 0 0 3px $white;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
&:checked:disabled + [class*='__label']::before,
|
|
131
|
+
&:checked[aria-disabled='true'] + [class*='__label']::before {
|
|
132
|
+
background-color: $gray-20;
|
|
133
|
+
box-shadow: 0 0 0 2px $gray-20, inset 0 0 0 3px $white;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
&__label,
|
|
138
|
+
.qppds .qpp-c-radio__label,
|
|
139
|
+
.qpp-prose .qpp-c-radio_label {
|
|
140
|
+
cursor: pointer;
|
|
141
|
+
display: inherit;
|
|
142
|
+
font-weight: $font-regular;
|
|
143
|
+
margin-top: $spacing-12;
|
|
144
|
+
padding-left: $spacing-32;
|
|
145
|
+
position: relative;
|
|
146
|
+
|
|
147
|
+
&::before {
|
|
148
|
+
content: ' ';
|
|
149
|
+
background: $white;
|
|
150
|
+
display: block;
|
|
151
|
+
// top: 0;
|
|
152
|
+
left: 0;
|
|
153
|
+
margin-left: 0;
|
|
154
|
+
margin-top: 0;
|
|
155
|
+
position: absolute;
|
|
156
|
+
z-index: 1;
|
|
157
|
+
border-radius: 99rem;
|
|
158
|
+
box-shadow: 0 0 0 2px $gray-80;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
&::after {
|
|
162
|
+
content: ' ';
|
|
163
|
+
background: none;
|
|
164
|
+
border-radius: 1rem;
|
|
165
|
+
box-sizing: border-box;
|
|
166
|
+
display: block;
|
|
167
|
+
top: 0;
|
|
168
|
+
left: 0;
|
|
169
|
+
margin-left: 0;
|
|
170
|
+
margin-top: 0;
|
|
171
|
+
position: absolute;
|
|
172
|
+
z-index: 0;
|
|
173
|
+
box-shadow: 0 0 0 0 transparent;
|
|
174
|
+
transition: box-shadow 0.5s ease 0.04s;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
&__label-description {
|
|
179
|
+
display: block;
|
|
180
|
+
//font-size: $font-size-base;
|
|
181
|
+
margin-top: $spacing-16;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
/* stylelint-enable selector-max-specificity, max-nesting-depth, selector-max-compound-selectors, value-list-comma-newline-after */
|
|
@@ -7,18 +7,20 @@ $spacers: (
|
|
|
7
7
|
'8': rem(8px),
|
|
8
8
|
'12': rem(12px),
|
|
9
9
|
'16': rem(16px),
|
|
10
|
+
'20': rem(20px),
|
|
10
11
|
'24': rem(24px),
|
|
11
12
|
'32': rem(32px),
|
|
12
13
|
'40': rem(40px),
|
|
13
14
|
'48': rem(48px),
|
|
14
|
-
'96': rem(96px)
|
|
15
|
+
'96': rem(96px),
|
|
15
16
|
);
|
|
16
17
|
|
|
17
18
|
$spacing-0: map-get($spacers, '0');
|
|
18
|
-
$spacing-4: map-get($spacers, '4');
|
|
19
|
+
$spacing-4: map-get($spacers, '4'); // deprecated
|
|
19
20
|
$spacing-8: map-get($spacers, '8');
|
|
20
21
|
$spacing-12: map-get($spacers, '12'); // deprecated
|
|
21
22
|
$spacing-16: map-get($spacers, '16');
|
|
23
|
+
$spacing-20: map-get($spacers, '20');
|
|
22
24
|
$spacing-24: map-get($spacers, '24');
|
|
23
25
|
$spacing-32: map-get($spacers, '32');
|
|
24
26
|
$spacing-40: map-get($spacers, '40');
|
|
@@ -40,7 +42,7 @@ $breakpoints: (
|
|
|
40
42
|
sm: $width-sm,
|
|
41
43
|
md: $width-md,
|
|
42
44
|
lg: $width-lg,
|
|
43
|
-
xl: $width-xl
|
|
45
|
+
xl: $width-xl,
|
|
44
46
|
);
|
|
45
47
|
|
|
46
48
|
// JS Variable Exports
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// stylelint-disable declaration-no-important
|
|
2
|
+
@import '../settings/index.scss';
|
|
3
|
+
|
|
4
|
+
.qpp-u-list-style--none {
|
|
5
|
+
list-style: none !important;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.qpp-u-list-style--decimal {
|
|
9
|
+
list-style: decimal !important;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.qpp-u-list-style--upper-alpha {
|
|
13
|
+
list-style: upper-alpha !important;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.qpp-u-list-style--circle {
|
|
17
|
+
list-style: circle !important;
|
|
18
|
+
}
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
<!doctype html>
|
|
3
|
-
<html lang="en">
|
|
4
|
-
|
|
5
|
-
<head>
|
|
6
|
-
<title>Code coverage report for components/Accordion</title>
|
|
7
|
-
<meta charset="utf-8" />
|
|
8
|
-
<link rel="stylesheet" href="../../prettify.css" />
|
|
9
|
-
<link rel="stylesheet" href="../../base.css" />
|
|
10
|
-
<link rel="shortcut icon" type="image/x-icon" href="../../favicon.png" />
|
|
11
|
-
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
12
|
-
<style type='text/css'>
|
|
13
|
-
.coverage-summary .sorter {
|
|
14
|
-
background-image: url(../../sort-arrow-sprite.png);
|
|
15
|
-
}
|
|
16
|
-
</style>
|
|
17
|
-
</head>
|
|
18
|
-
|
|
19
|
-
<body>
|
|
20
|
-
<div class='wrapper'>
|
|
21
|
-
<div class='pad1'>
|
|
22
|
-
<h1><a href="../../index.html">All files</a> components/Accordion</h1>
|
|
23
|
-
<div class='clearfix'>
|
|
24
|
-
|
|
25
|
-
<div class='fl pad1y space-right2'>
|
|
26
|
-
<span class="strong">70% </span>
|
|
27
|
-
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>14/20</span>
|
|
29
|
-
</div>
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
<div class='fl pad1y space-right2'>
|
|
33
|
-
<span class="strong">40% </span>
|
|
34
|
-
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>8/20</span>
|
|
36
|
-
</div>
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
<div class='fl pad1y space-right2'>
|
|
40
|
-
<span class="strong">50% </span>
|
|
41
|
-
<span class="quiet">Functions</span>
|
|
42
|
-
<span class='fraction'>3/6</span>
|
|
43
|
-
</div>
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">70% </span>
|
|
48
|
-
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>14/20</span>
|
|
50
|
-
</div>
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
</div>
|
|
54
|
-
<p class="quiet">
|
|
55
|
-
Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block.
|
|
56
|
-
</p>
|
|
57
|
-
<template id="filterTemplate">
|
|
58
|
-
<div class="quiet">
|
|
59
|
-
Filter:
|
|
60
|
-
<input oninput="onInput()" type="search" id="fileSearch">
|
|
61
|
-
</div>
|
|
62
|
-
</template>
|
|
63
|
-
</div>
|
|
64
|
-
<div class='status-line medium'></div>
|
|
65
|
-
<div class="pad1">
|
|
66
|
-
<table class="coverage-summary">
|
|
67
|
-
<thead>
|
|
68
|
-
<tr>
|
|
69
|
-
<th data-col="file" data-fmt="html" data-html="true" class="file">File</th>
|
|
70
|
-
<th data-col="pic" data-type="number" data-fmt="html" data-html="true" class="pic"></th>
|
|
71
|
-
<th data-col="statements" data-type="number" data-fmt="pct" class="pct">Statements</th>
|
|
72
|
-
<th data-col="statements_raw" data-type="number" data-fmt="html" class="abs"></th>
|
|
73
|
-
<th data-col="branches" data-type="number" data-fmt="pct" class="pct">Branches</th>
|
|
74
|
-
<th data-col="branches_raw" data-type="number" data-fmt="html" class="abs"></th>
|
|
75
|
-
<th data-col="functions" data-type="number" data-fmt="pct" class="pct">Functions</th>
|
|
76
|
-
<th data-col="functions_raw" data-type="number" data-fmt="html" class="abs"></th>
|
|
77
|
-
<th data-col="lines" data-type="number" data-fmt="pct" class="pct">Lines</th>
|
|
78
|
-
<th data-col="lines_raw" data-type="number" data-fmt="html" class="abs"></th>
|
|
79
|
-
</tr>
|
|
80
|
-
</thead>
|
|
81
|
-
<tbody><tr>
|
|
82
|
-
<td class="file medium" data-value="index.jsx"><a href="index.jsx.html">index.jsx</a></td>
|
|
83
|
-
<td data-value="70" class="pic medium">
|
|
84
|
-
<div class="chart"><div class="cover-fill" style="width: 70%"></div><div class="cover-empty" style="width: 30%"></div></div>
|
|
85
|
-
</td>
|
|
86
|
-
<td data-value="70" class="pct medium">70%</td>
|
|
87
|
-
<td data-value="20" class="abs medium">14/20</td>
|
|
88
|
-
<td data-value="40" class="pct low">40%</td>
|
|
89
|
-
<td data-value="20" class="abs low">8/20</td>
|
|
90
|
-
<td data-value="50" class="pct medium">50%</td>
|
|
91
|
-
<td data-value="6" class="abs medium">3/6</td>
|
|
92
|
-
<td data-value="70" class="pct medium">70%</td>
|
|
93
|
-
<td data-value="20" class="abs medium">14/20</td>
|
|
94
|
-
</tr>
|
|
95
|
-
|
|
96
|
-
</tbody>
|
|
97
|
-
</table>
|
|
98
|
-
</div>
|
|
99
|
-
<div class='push'></div><!-- for sticky footer -->
|
|
100
|
-
</div><!-- /wrapper -->
|
|
101
|
-
<div class='footer quiet pad2 space-top1 center small'>
|
|
102
|
-
Code coverage generated by
|
|
103
|
-
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
104
|
-
at Fri Apr 29 2022 13:58:50 GMT-0400 (Eastern Daylight Time)
|
|
105
|
-
</div>
|
|
106
|
-
<script src="../../prettify.js"></script>
|
|
107
|
-
<script>
|
|
108
|
-
window.onload = function () {
|
|
109
|
-
prettyPrint();
|
|
110
|
-
};
|
|
111
|
-
</script>
|
|
112
|
-
<script src="../../sorter.js"></script>
|
|
113
|
-
<script src="../../block-navigation.js"></script>
|
|
114
|
-
</body>
|
|
115
|
-
</html>
|
|
116
|
-
|