@patternfly/patternfly 4.164.4 → 4.166.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/base/_base.scss +2 -0
- package/base/_fa-icons.scss +2 -0
- package/base/_fonts.scss +2 -2
- package/components/Button/button.css +14 -2
- package/components/Button/button.scss +19 -3
- package/components/ExpandableSection/expandable-section.css +6 -0
- package/components/ExpandableSection/expandable-section.scss +9 -0
- package/components/LogViewer/log-viewer.css +17 -15
- package/components/LogViewer/log-viewer.scss +17 -20
- package/components/Login/login.css +1 -0
- package/components/Login/login.scss +1 -0
- package/docs/components/Button/examples/Button.md +24 -1
- package/docs/components/ExpandableSection/examples/ExpandableSection.md +22 -0
- package/docs/components/NotificationBadge/examples/NotificationBadge.css +3 -0
- package/docs/components/NotificationBadge/examples/NotificationBadge.md +132 -108
- package/layouts/_all.scss +7 -7
- package/package.json +1 -1
- package/patternfly-no-reset.css +38 -17
- package/patternfly.css +38 -17
- package/patternfly.min.css +1 -1
- package/patternfly.min.css.map +1 -1
- package/sass-utilities/bs-variables.scss +2 -3
- package/sass-utilities/functions.scss +0 -1
- package/sass-utilities/mixins.scss +5 -5
- package/sass-utilities/scss-variables.scss +1 -1
package/base/_base.scss
CHANGED
package/base/_fa-icons.scss
CHANGED
|
@@ -5,8 +5,10 @@
|
|
|
5
5
|
|
|
6
6
|
@if not($pf-global--disable-fontawesome) {
|
|
7
7
|
@if $pf-global--enable-fontawesome-cdn {
|
|
8
|
+
// stylelint-disable no-invalid-position-at-import-rule
|
|
8
9
|
@import url("https://use.fontawesome.com/releases/v5.7.2/css/solid.css");
|
|
9
10
|
@import url("https://use.fontawesome.com/releases/v5.7.2/css/fontawesome.css");
|
|
11
|
+
// stylelint-enable no-invalid-position-at-import-rule
|
|
10
12
|
} @else {
|
|
11
13
|
@font-face {
|
|
12
14
|
font-family: "Font Awesome 5 Free";
|
package/base/_fonts.scss
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
//
|
|
2
1
|
// Fonts
|
|
3
2
|
// --------------------------------------------------
|
|
4
3
|
// PatternFly uses RedHatText - https://github.com/RedHatOfficial/RedHatFont
|
|
5
|
-
//
|
|
6
4
|
|
|
7
5
|
// stylelint-disable font-family-name-quotes
|
|
8
6
|
|
|
@@ -157,7 +155,9 @@
|
|
|
157
155
|
|
|
158
156
|
|
|
159
157
|
@if $pf-global--enable-font-overpass-cdn {
|
|
158
|
+
// stylelint-disable no-invalid-position-at-import-rule
|
|
160
159
|
@import url("https://fonts.googleapis.com/css?family=Overpass|Overpass+Mono");
|
|
160
|
+
// stylelint-enable no-invalid-position-at-import-rule
|
|
161
161
|
} @else {
|
|
162
162
|
@font-face {
|
|
163
163
|
font-family: "overpass";
|
|
@@ -144,6 +144,7 @@
|
|
|
144
144
|
--pf-c-button__progress--width: calc(var(--pf-global--icon--FontSize--md) + var(--pf-global--spacer--sm));
|
|
145
145
|
--pf-c-button__progress--Opacity: 0;
|
|
146
146
|
--pf-c-button__progress--TranslateY: -50%;
|
|
147
|
+
--pf-c-button__progress--TranslateX: 0;
|
|
147
148
|
--pf-c-button__progress--Top: 50%;
|
|
148
149
|
--pf-c-button__progress--Left: var(--pf-global--spacer--md);
|
|
149
150
|
--pf-c-button--m-progress--TransitionProperty: padding;
|
|
@@ -152,6 +153,9 @@
|
|
|
152
153
|
--pf-c-button--m-progress--PaddingLeft: calc(var(--pf-global--spacer--md) + var(--pf-c-button__progress--width) / 2);
|
|
153
154
|
--pf-c-button--m-in-progress--PaddingRight: var(--pf-global--spacer--md);
|
|
154
155
|
--pf-c-button--m-in-progress--PaddingLeft: calc(var(--pf-global--spacer--md) + var(--pf-c-button__progress--width));
|
|
156
|
+
--pf-c-button--m-in-progress--m-plain--Color: var(--pf-global--primary-color--100);
|
|
157
|
+
--pf-c-button--m-in-progress--m-plain__progress--Left: 50%;
|
|
158
|
+
--pf-c-button--m-in-progress--m-plain__progress--TranslateX: -50%;
|
|
155
159
|
position: relative;
|
|
156
160
|
display: inline-block;
|
|
157
161
|
padding: var(--pf-c-button--PaddingTop) var(--pf-c-button--PaddingRight) var(--pf-c-button--PaddingBottom) var(--pf-c-button--PaddingLeft);
|
|
@@ -437,10 +441,18 @@
|
|
|
437
441
|
--pf-c-button--PaddingLeft: var(--pf-c-button--m-progress--PaddingLeft);
|
|
438
442
|
transition: var(--pf-c-button--m-progress--TransitionProperty) var(--pf-c-button--m-progress--TransitionDuration);
|
|
439
443
|
}
|
|
440
|
-
.pf-c-button.pf-m-in-progress {
|
|
444
|
+
.pf-c-button.pf-m-in-progress:not(.pf-m-plain) {
|
|
441
445
|
--pf-c-button--PaddingRight: var(--pf-c-button--m-in-progress--PaddingRight);
|
|
442
446
|
--pf-c-button--PaddingLeft: var(--pf-c-button--m-in-progress--PaddingLeft);
|
|
443
447
|
}
|
|
448
|
+
.pf-c-button.pf-m-in-progress.pf-m-plain {
|
|
449
|
+
--pf-c-button--m-plain--Color: var(--pf-c-button--m-in-progress--m-plain--Color);
|
|
450
|
+
--pf-c-button__progress--Left: var(--pf-c-button--m-in-progress--m-plain__progress--Left);
|
|
451
|
+
--pf-c-button__progress--TranslateX: var(--pf-c-button--m-in-progress--m-plain__progress--TranslateX);
|
|
452
|
+
}
|
|
453
|
+
.pf-c-button.pf-m-in-progress.pf-m-plain > :not(.pf-c-button__progress) {
|
|
454
|
+
opacity: 0;
|
|
455
|
+
}
|
|
444
456
|
|
|
445
457
|
.pf-c-button__icon.pf-m-start {
|
|
446
458
|
margin-right: var(--pf-c-button__icon--m-start--MarginRight);
|
|
@@ -454,7 +466,7 @@
|
|
|
454
466
|
top: var(--pf-c-button__progress--Top);
|
|
455
467
|
left: var(--pf-c-button__progress--Left);
|
|
456
468
|
line-height: 1;
|
|
457
|
-
transform:
|
|
469
|
+
transform: translate(var(--pf-c-button__progress--TranslateX), var(--pf-c-button__progress--TranslateY));
|
|
458
470
|
}
|
|
459
471
|
.pf-c-button__progress .pf-c-spinner {
|
|
460
472
|
--pf-c-spinner--Color: currentColor;
|
|
@@ -179,6 +179,7 @@
|
|
|
179
179
|
--pf-c-button__progress--width: calc(var(--pf-global--icon--FontSize--md) + var(--pf-global--spacer--sm)); // matches medium spinner diameter plus a spacer
|
|
180
180
|
--pf-c-button__progress--Opacity: 0;
|
|
181
181
|
--pf-c-button__progress--TranslateY: -50%;
|
|
182
|
+
--pf-c-button__progress--TranslateX: 0;
|
|
182
183
|
--pf-c-button__progress--Top: 50%;
|
|
183
184
|
--pf-c-button__progress--Left: var(--pf-global--spacer--md);
|
|
184
185
|
--pf-c-button--m-progress--TransitionProperty: padding;
|
|
@@ -187,6 +188,9 @@
|
|
|
187
188
|
--pf-c-button--m-progress--PaddingLeft: calc(var(--pf-global--spacer--md) + var(--pf-c-button__progress--width) / 2);
|
|
188
189
|
--pf-c-button--m-in-progress--PaddingRight: var(--pf-global--spacer--md);
|
|
189
190
|
--pf-c-button--m-in-progress--PaddingLeft: calc(var(--pf-global--spacer--md) + var(--pf-c-button__progress--width));
|
|
191
|
+
--pf-c-button--m-in-progress--m-plain--Color: var(--pf-global--primary-color--100);
|
|
192
|
+
--pf-c-button--m-in-progress--m-plain__progress--Left: 50%;
|
|
193
|
+
--pf-c-button--m-in-progress--m-plain__progress--TranslateX: -50%;
|
|
190
194
|
|
|
191
195
|
position: relative;
|
|
192
196
|
display: inline-block;
|
|
@@ -577,8 +581,20 @@
|
|
|
577
581
|
}
|
|
578
582
|
|
|
579
583
|
&.pf-m-in-progress {
|
|
580
|
-
|
|
581
|
-
|
|
584
|
+
&:not(.pf-m-plain) {
|
|
585
|
+
--pf-c-button--PaddingRight: var(--pf-c-button--m-in-progress--PaddingRight);
|
|
586
|
+
--pf-c-button--PaddingLeft: var(--pf-c-button--m-in-progress--PaddingLeft);
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
&.pf-m-plain {
|
|
590
|
+
--pf-c-button--m-plain--Color: var(--pf-c-button--m-in-progress--m-plain--Color);
|
|
591
|
+
--pf-c-button__progress--Left: var(--pf-c-button--m-in-progress--m-plain__progress--Left);
|
|
592
|
+
--pf-c-button__progress--TranslateX: var(--pf-c-button--m-in-progress--m-plain__progress--TranslateX);
|
|
593
|
+
|
|
594
|
+
> :not(.pf-c-button__progress) {
|
|
595
|
+
opacity: 0;
|
|
596
|
+
}
|
|
597
|
+
}
|
|
582
598
|
}
|
|
583
599
|
}
|
|
584
600
|
|
|
@@ -597,7 +613,7 @@
|
|
|
597
613
|
top: var(--pf-c-button__progress--Top);
|
|
598
614
|
left: var(--pf-c-button__progress--Left);
|
|
599
615
|
line-height: 1;
|
|
600
|
-
transform:
|
|
616
|
+
transform: translate(var(--pf-c-button__progress--TranslateX), var(--pf-c-button__progress--TranslateY));
|
|
601
617
|
|
|
602
618
|
.pf-c-spinner {
|
|
603
619
|
--pf-c-spinner--Color: currentColor;
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
--pf-c-expandable-section__toggle--active--Color: var(--pf-global--link--Color--hover);
|
|
9
9
|
--pf-c-expandable-section__toggle--focus--Color: var(--pf-global--link--Color--hover);
|
|
10
10
|
--pf-c-expandable-section__toggle--m-expanded--Color: var(--pf-global--link--Color--hover);
|
|
11
|
+
--pf-c-expandable-section__toggle-icon--MinWidth: 1em;
|
|
11
12
|
--pf-c-expandable-section__toggle-icon--Color: var(--pf-global--Color--100);
|
|
12
13
|
--pf-c-expandable-section__toggle-icon--Transition: .2s ease-in 0s;
|
|
13
14
|
--pf-c-expandable-section__toggle-icon--Rotate: 0;
|
|
@@ -30,6 +31,7 @@
|
|
|
30
31
|
--pf-c-expandable-section--m-display-lg--after--BackgroundColor: transparent;
|
|
31
32
|
--pf-c-expandable-section--m-display-lg--after--Width: var(--pf-global--BorderWidth--lg);
|
|
32
33
|
--pf-c-expandable-section--m-display-lg--m-expanded--after--BackgroundColor: var(--pf-global--primary-color--100);
|
|
34
|
+
--pf-c-expandable-section--m-indented__content--PaddingLeft: calc(var(--pf-c-expandable-section__toggle-text--MarginLeft) + var(--pf-c-expandable-section__toggle-icon--MinWidth));
|
|
33
35
|
}
|
|
34
36
|
.pf-c-expandable-section.pf-m-expanded {
|
|
35
37
|
--pf-c-expandable-section__toggle--Color: var(--pf-c-expandable-section__toggle--m-expanded--Color);
|
|
@@ -64,6 +66,9 @@
|
|
|
64
66
|
content: "";
|
|
65
67
|
background-color: var(--pf-c-expandable-section--m-display-lg--after--BackgroundColor);
|
|
66
68
|
}
|
|
69
|
+
.pf-c-expandable-section.pf-m-indented {
|
|
70
|
+
--pf-c-expandable-section__content--PaddingLeft: var(--pf-c-expandable-section--m-indented__content--PaddingLeft);
|
|
71
|
+
}
|
|
67
72
|
|
|
68
73
|
.pf-c-expandable-section__toggle {
|
|
69
74
|
display: flex;
|
|
@@ -82,6 +87,7 @@
|
|
|
82
87
|
}
|
|
83
88
|
|
|
84
89
|
.pf-c-expandable-section__toggle-icon {
|
|
90
|
+
min-width: var(--pf-c-expandable-section__toggle-icon--MinWidth);
|
|
85
91
|
color: var(--pf-c-expandable-section__toggle-icon--Color);
|
|
86
92
|
transition: var(--pf-c-expandable-section__toggle-icon--Transition);
|
|
87
93
|
transform: rotate(var(--pf-c-expandable-section__toggle-icon--Rotate));
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
--pf-c-expandable-section__toggle--m-expanded--Color: var(--pf-global--link--Color--hover);
|
|
12
12
|
|
|
13
13
|
// Toggle icon
|
|
14
|
+
--pf-c-expandable-section__toggle-icon--MinWidth: 1em;
|
|
14
15
|
--pf-c-expandable-section__toggle-icon--Color: var(--pf-global--Color--100);
|
|
15
16
|
--pf-c-expandable-section__toggle-icon--Transition: .2s ease-in 0s;
|
|
16
17
|
--pf-c-expandable-section__toggle-icon--Rotate: 0;
|
|
@@ -42,6 +43,9 @@
|
|
|
42
43
|
--pf-c-expandable-section--m-display-lg--after--Width: var(--pf-global--BorderWidth--lg);
|
|
43
44
|
--pf-c-expandable-section--m-display-lg--m-expanded--after--BackgroundColor: var(--pf-global--primary-color--100);
|
|
44
45
|
|
|
46
|
+
// Indented
|
|
47
|
+
--pf-c-expandable-section--m-indented__content--PaddingLeft: calc(var(--pf-c-expandable-section__toggle-text--MarginLeft) + var(--pf-c-expandable-section__toggle-icon--MinWidth));
|
|
48
|
+
|
|
45
49
|
|
|
46
50
|
&.pf-m-expanded {
|
|
47
51
|
--pf-c-expandable-section__toggle--Color: var(--pf-c-expandable-section__toggle--m-expanded--Color);
|
|
@@ -81,6 +85,10 @@
|
|
|
81
85
|
background-color: var(--pf-c-expandable-section--m-display-lg--after--BackgroundColor);
|
|
82
86
|
}
|
|
83
87
|
}
|
|
88
|
+
|
|
89
|
+
&.pf-m-indented {
|
|
90
|
+
--pf-c-expandable-section__content--PaddingLeft: var(--pf-c-expandable-section--m-indented__content--PaddingLeft);
|
|
91
|
+
}
|
|
84
92
|
}
|
|
85
93
|
|
|
86
94
|
.pf-c-expandable-section__toggle {
|
|
@@ -104,6 +112,7 @@
|
|
|
104
112
|
}
|
|
105
113
|
|
|
106
114
|
.pf-c-expandable-section__toggle-icon {
|
|
115
|
+
min-width: var(--pf-c-expandable-section__toggle-icon--MinWidth);
|
|
107
116
|
color: var(--pf-c-expandable-section__toggle-icon--Color);
|
|
108
117
|
transition: var(--pf-c-expandable-section__toggle-icon--Transition);
|
|
109
118
|
transform: rotate(var(--pf-c-expandable-section__toggle-icon--Rotate));
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
.pf-c-log-viewer__header
|
|
1
|
+
.pf-c-log-viewer__header,
|
|
2
|
+
.pf-c-log-viewer__footer {
|
|
2
3
|
--pf-global--Color--100: var(--pf-global--Color--dark-100);
|
|
3
4
|
--pf-global--Color--200: var(--pf-global--Color--dark-200);
|
|
4
5
|
--pf-global--BorderColor--100: var(--pf-global--BorderColor--dark-100);
|
|
@@ -107,7 +108,15 @@
|
|
|
107
108
|
position: absolute;
|
|
108
109
|
right: 0;
|
|
109
110
|
left: var(--pf-c-log-viewer--m-line-numbers__list--Left);
|
|
110
|
-
|
|
111
|
+
}
|
|
112
|
+
.pf-c-log-viewer.pf-m-line-numbers .pf-c-log-viewer__list::before {
|
|
113
|
+
position: absolute;
|
|
114
|
+
top: var(--pf-c-log-viewer--m-line-numbers__main--before--Top);
|
|
115
|
+
bottom: var(--pf-c-log-viewer--m-line-numbers__main--before--Bottom);
|
|
116
|
+
left: 0;
|
|
117
|
+
width: var(--pf-c-log-viewer--m-line-numbers__main--before--Width);
|
|
118
|
+
content: "";
|
|
119
|
+
background: var(--pf-c-log-viewer--m-line-numbers__main--before--BackgroundColor);
|
|
111
120
|
}
|
|
112
121
|
.pf-c-log-viewer .pf-c-toolbar {
|
|
113
122
|
--pf-c-toolbar--PaddingTop: var(--pf-c-log-viewer--c-toolbar--PaddingTop);
|
|
@@ -125,10 +134,14 @@
|
|
|
125
134
|
}
|
|
126
135
|
|
|
127
136
|
.pf-c-log-viewer__header {
|
|
128
|
-
color: var(--pf-global--Color--100);
|
|
129
137
|
margin-bottom: var(--pf-c-log-viewer__header--MarginBottom);
|
|
130
138
|
}
|
|
131
139
|
|
|
140
|
+
.pf-c-log-viewer__header,
|
|
141
|
+
.pf-c-log-viewer__footer {
|
|
142
|
+
color: var(--pf-global--Color--100);
|
|
143
|
+
}
|
|
144
|
+
|
|
132
145
|
.pf-c-log-viewer__main {
|
|
133
146
|
display: flex;
|
|
134
147
|
flex-direction: column;
|
|
@@ -136,18 +149,6 @@
|
|
|
136
149
|
background-color: var(--pf-c-log-viewer__main--BackgroundColor);
|
|
137
150
|
border: var(--pf-c-log-viewer__main--BorderWidth) solid var(--pf-c-log-viewer__main--BorderColor);
|
|
138
151
|
}
|
|
139
|
-
.pf-m-line-numbers .pf-c-log-viewer__main {
|
|
140
|
-
position: relative;
|
|
141
|
-
}
|
|
142
|
-
.pf-m-line-numbers .pf-c-log-viewer__main::before {
|
|
143
|
-
position: absolute;
|
|
144
|
-
top: var(--pf-c-log-viewer--m-line-numbers__main--before--Top);
|
|
145
|
-
bottom: var(--pf-c-log-viewer--m-line-numbers__main--before--Bottom);
|
|
146
|
-
left: var(--pf-c-log-viewer__index--Width);
|
|
147
|
-
width: var(--pf-c-log-viewer--m-line-numbers__main--before--Width);
|
|
148
|
-
content: "";
|
|
149
|
-
background: var(--pf-c-log-viewer--m-line-numbers__main--before--BackgroundColor);
|
|
150
|
-
}
|
|
151
152
|
|
|
152
153
|
.pf-c-log-viewer__scroll-container {
|
|
153
154
|
position: relative;
|
|
@@ -188,6 +189,7 @@
|
|
|
188
189
|
font-family: var(--pf-c-log-viewer__index--FontFamily);
|
|
189
190
|
font-size: var(--pf-c-log-viewer__index--FontSize);
|
|
190
191
|
color: var(--pf-c-log-viewer__index--Color);
|
|
192
|
+
user-select: none;
|
|
191
193
|
background-color: var(--pf-c-log-viewer__index--BackgroundColor);
|
|
192
194
|
}
|
|
193
195
|
|
|
@@ -91,7 +91,17 @@
|
|
|
91
91
|
position: absolute;
|
|
92
92
|
right: 0;
|
|
93
93
|
left: var(--pf-c-log-viewer--m-line-numbers__list--Left);
|
|
94
|
-
|
|
94
|
+
|
|
95
|
+
// Divider
|
|
96
|
+
&::before {
|
|
97
|
+
position: absolute;
|
|
98
|
+
top: var(--pf-c-log-viewer--m-line-numbers__main--before--Top); // rename these vars at a breaking change
|
|
99
|
+
bottom: var(--pf-c-log-viewer--m-line-numbers__main--before--Bottom);
|
|
100
|
+
left: 0;
|
|
101
|
+
width: var(--pf-c-log-viewer--m-line-numbers__main--before--Width);
|
|
102
|
+
content: "";
|
|
103
|
+
background: var(--pf-c-log-viewer--m-line-numbers__main--before--BackgroundColor);
|
|
104
|
+
}
|
|
95
105
|
}
|
|
96
106
|
}
|
|
97
107
|
|
|
@@ -116,11 +126,14 @@
|
|
|
116
126
|
|
|
117
127
|
// Header
|
|
118
128
|
.pf-c-log-viewer__header {
|
|
119
|
-
@include pf-t-light;
|
|
120
|
-
|
|
121
129
|
margin-bottom: var(--pf-c-log-viewer__header--MarginBottom);
|
|
122
130
|
}
|
|
123
131
|
|
|
132
|
+
.pf-c-log-viewer__header,
|
|
133
|
+
.pf-c-log-viewer__footer {
|
|
134
|
+
@include pf-t-light;
|
|
135
|
+
}
|
|
136
|
+
|
|
124
137
|
// Main
|
|
125
138
|
.pf-c-log-viewer__main {
|
|
126
139
|
display: flex;
|
|
@@ -128,23 +141,6 @@
|
|
|
128
141
|
min-height: 0;
|
|
129
142
|
background-color: var(--pf-c-log-viewer__main--BackgroundColor);
|
|
130
143
|
border: var(--pf-c-log-viewer__main--BorderWidth) solid var(--pf-c-log-viewer__main--BorderColor);
|
|
131
|
-
|
|
132
|
-
// stylelint-disable scss/at-rule-no-unknown
|
|
133
|
-
@at-root.pf-m-line-numbers & {
|
|
134
|
-
position: relative;
|
|
135
|
-
|
|
136
|
-
// Divider
|
|
137
|
-
&::before {
|
|
138
|
-
position: absolute;
|
|
139
|
-
top: var(--pf-c-log-viewer--m-line-numbers__main--before--Top);
|
|
140
|
-
bottom: var(--pf-c-log-viewer--m-line-numbers__main--before--Bottom);
|
|
141
|
-
left: var(--pf-c-log-viewer__index--Width); // share this value so JS can update one value rather than two
|
|
142
|
-
width: var(--pf-c-log-viewer--m-line-numbers__main--before--Width);
|
|
143
|
-
content: "";
|
|
144
|
-
background: var(--pf-c-log-viewer--m-line-numbers__main--before--BackgroundColor);
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
// stylelint-enable
|
|
148
144
|
}
|
|
149
145
|
|
|
150
146
|
.pf-c-log-viewer__scroll-container {
|
|
@@ -191,6 +187,7 @@
|
|
|
191
187
|
font-family: var(--pf-c-log-viewer__index--FontFamily);
|
|
192
188
|
font-size: var(--pf-c-log-viewer__index--FontSize);
|
|
193
189
|
color: var(--pf-c-log-viewer__index--Color);
|
|
190
|
+
user-select: none;
|
|
194
191
|
background-color: var(--pf-c-log-viewer__index--BackgroundColor);
|
|
195
192
|
}
|
|
196
193
|
|
|
@@ -404,6 +404,29 @@ Sed hendrerit nisi in cursus maximus. Ut malesuada nisi turpis, in condimentum v
|
|
|
404
404
|
Secondary loading
|
|
405
405
|
</button>
|
|
406
406
|
|
|
407
|
+
<button class="pf-c-button pf-m-plain" type="button" aria-label="Upload">
|
|
408
|
+
<i class="fas fa-upload" aria-hidden="true"></i>
|
|
409
|
+
</button>
|
|
410
|
+
|
|
411
|
+
<button
|
|
412
|
+
class="pf-c-button pf-m-plain pf-m-in-progress"
|
|
413
|
+
type="button"
|
|
414
|
+
aria-label="Upload"
|
|
415
|
+
>
|
|
416
|
+
<i class="fas fa-upload" aria-hidden="true"></i>
|
|
417
|
+
<span class="pf-c-button__progress">
|
|
418
|
+
<span
|
|
419
|
+
class="pf-c-spinner pf-m-md"
|
|
420
|
+
role="progressbar"
|
|
421
|
+
aria-label="Loading..."
|
|
422
|
+
>
|
|
423
|
+
<span class="pf-c-spinner__clipper"></span>
|
|
424
|
+
<span class="pf-c-spinner__lead-ball"></span>
|
|
425
|
+
<span class="pf-c-spinner__tail-ball"></span>
|
|
426
|
+
</span>
|
|
427
|
+
</span>
|
|
428
|
+
</button>
|
|
429
|
+
|
|
407
430
|
```
|
|
408
431
|
|
|
409
432
|
## Documentation
|
|
@@ -453,5 +476,5 @@ Semantic buttons and links are important for usability as well as accessibility.
|
|
|
453
476
|
| `.pf-m-small` | `.pf-c-button` | Modifies the button so that it has small font size. |
|
|
454
477
|
| `.pf-m-aria-disabled` | `.pf-c-button` | Modifies a button to be visually disabled, yet is still focusable. |
|
|
455
478
|
| `.pf-m-display-lg` | `.pf-c-button`, `pf-c-button.pf-m-link` | Modifies the button and link button for large display styling. For example, use this modifier to achieve "call to action" styles. |
|
|
456
|
-
| `.pf-m-progress` | `.pf-c-button` | Indicates that the button supports the progress state.
|
|
479
|
+
| `.pf-m-progress` | `.pf-c-button` | Indicates that the button supports the progress state. **Note:** Not used with the plain variation. |
|
|
457
480
|
| `.pf-m-in-progress` | `.pf-c-button` | Indicates that the button is in the in progress state. |
|
|
@@ -124,6 +124,27 @@ cssPrefix: pf-c-expandable-section
|
|
|
124
124
|
|
|
125
125
|
```
|
|
126
126
|
|
|
127
|
+
### Indented
|
|
128
|
+
|
|
129
|
+
```html
|
|
130
|
+
<div class="pf-c-expandable-section pf-m-expanded pf-m-indented">
|
|
131
|
+
<button
|
|
132
|
+
type="button"
|
|
133
|
+
class="pf-c-expandable-section__toggle"
|
|
134
|
+
aria-expanded="true"
|
|
135
|
+
>
|
|
136
|
+
<span class="pf-c-expandable-section__toggle-icon">
|
|
137
|
+
<i class="fas fa-angle-right" aria-hidden="true"></i>
|
|
138
|
+
</span>
|
|
139
|
+
<span class="pf-c-expandable-section__toggle-text">Show less</span>
|
|
140
|
+
</button>
|
|
141
|
+
<div
|
|
142
|
+
class="pf-c-expandable-section__content"
|
|
143
|
+
>This content is visible only when the component is expanded.</div>
|
|
144
|
+
</div>
|
|
145
|
+
|
|
146
|
+
```
|
|
147
|
+
|
|
127
148
|
## Documentation
|
|
128
149
|
|
|
129
150
|
### Accessibility
|
|
@@ -149,5 +170,6 @@ cssPrefix: pf-c-expandable-section
|
|
|
149
170
|
| `.pf-m-expanded` | `.pf-c-expandable-section` | Modifies the component for the expanded state. |
|
|
150
171
|
| `.pf-m-display-lg` | `.pf-c-expandable-section` | Modifies the styling of the component to have large display styling. |
|
|
151
172
|
| `.pf-m-detached` | `.pf-c-expandable-section` | Indicates that the expandable section toggle and content are detached from one another, so you can move them around independently in the markup. |
|
|
173
|
+
| `.pf-m-indented` | `.pf-c-expandable-section` | Indicates that the expandable section content is indented and is aligned with the start of the title text to provide visual hierarchy. |
|
|
152
174
|
| `.pf-m-active` | `.pf-c-expandable-section__toggle` | Forces display of the active state of the toggle. |
|
|
153
175
|
| `.pf-m-expand-top` | `.pf-c-expandable-section__toggle-icon` | Modifies the toggle icon to point up when expanded. |
|