@patternfly/patternfly 4.164.3 → 4.165.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/base/_base.scss +2 -0
- package/base/_fa-icons.scss +2 -0
- package/base/_fonts.scss +2 -2
- 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/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/docs/pages/contribution.md +1 -1
- package/layouts/_all.scss +7 -7
- package/package.json +1 -1
- package/patternfly-no-reset.css +24 -15
- package/patternfly.css +24 -15
- 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";
|
|
@@ -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
|
|
|
@@ -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. |
|
|
@@ -2,123 +2,145 @@
|
|
|
2
2
|
id: Notification badge
|
|
3
3
|
section: components
|
|
4
4
|
cssPrefix: pf-c-notification-badge
|
|
5
|
-
|
|
5
|
+
---import './NotificationBadge.css'
|
|
6
|
+
|
|
7
|
+
## Examples
|
|
6
8
|
|
|
7
9
|
### Basic
|
|
8
10
|
|
|
9
11
|
```html
|
|
10
|
-
<
|
|
11
|
-
<
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
<
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
<
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
<
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
<
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
<
|
|
37
|
-
<
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
<
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
</
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
>
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
</
|
|
59
|
-
|
|
12
|
+
<div class="pf-t-dark">
|
|
13
|
+
<button
|
|
14
|
+
class="pf-c-button pf-m-plain"
|
|
15
|
+
type="button"
|
|
16
|
+
aria-label="Notifications"
|
|
17
|
+
>
|
|
18
|
+
<span class="pf-c-notification-badge pf-m-read">
|
|
19
|
+
<i class="pf-icon-bell" aria-hidden="true"></i>
|
|
20
|
+
</span>
|
|
21
|
+
</button>
|
|
22
|
+
|
|
23
|
+
<button
|
|
24
|
+
class="pf-c-button pf-m-plain"
|
|
25
|
+
type="button"
|
|
26
|
+
aria-label="Unread notifications"
|
|
27
|
+
>
|
|
28
|
+
<span class="pf-c-notification-badge pf-m-unread">
|
|
29
|
+
<i class="pf-icon-bell" aria-hidden="true"></i>
|
|
30
|
+
</span>
|
|
31
|
+
</button>
|
|
32
|
+
|
|
33
|
+
<button
|
|
34
|
+
class="pf-c-button pf-m-plain"
|
|
35
|
+
type="button"
|
|
36
|
+
aria-label="Attention notifications"
|
|
37
|
+
>
|
|
38
|
+
<span class="pf-c-notification-badge pf-m-attention">
|
|
39
|
+
<i class="pf-icon-attention-bell" aria-hidden="true"></i>
|
|
40
|
+
</span>
|
|
41
|
+
</button>
|
|
42
|
+
|
|
43
|
+
<br />
|
|
44
|
+
<br />
|
|
45
|
+
|
|
46
|
+
<button class="pf-c-button pf-m-plain" type="button" aria-label="Tasks">
|
|
47
|
+
<span class="pf-c-notification-badge pf-m-read">
|
|
48
|
+
<i class="pf-icon-task" aria-hidden="true"></i>
|
|
49
|
+
</span>
|
|
50
|
+
</button>
|
|
51
|
+
|
|
52
|
+
<button
|
|
53
|
+
class="pf-c-button pf-m-plain"
|
|
54
|
+
type="button"
|
|
55
|
+
aria-label="Unread tasks"
|
|
56
|
+
>
|
|
57
|
+
<span class="pf-c-notification-badge pf-m-unread">
|
|
58
|
+
<i class="pf-icon-task" aria-hidden="true"></i>
|
|
59
|
+
</span>
|
|
60
|
+
</button>
|
|
61
|
+
|
|
62
|
+
<button
|
|
63
|
+
class="pf-c-button pf-m-plain"
|
|
64
|
+
type="button"
|
|
65
|
+
aria-label="Attention tasks"
|
|
66
|
+
>
|
|
67
|
+
<span class="pf-c-notification-badge pf-m-attention">
|
|
68
|
+
<i class="pf-icon-task" aria-hidden="true"></i>
|
|
69
|
+
</span>
|
|
70
|
+
</button>
|
|
71
|
+
</div>
|
|
60
72
|
|
|
61
73
|
```
|
|
62
74
|
|
|
63
75
|
### With count
|
|
64
76
|
|
|
65
77
|
```html
|
|
66
|
-
<
|
|
67
|
-
<
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
<
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
<
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
<
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
<
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
<
|
|
96
|
-
<
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
<
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
>
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
78
|
+
<div class="pf-t-dark">
|
|
79
|
+
<button
|
|
80
|
+
class="pf-c-button pf-m-plain"
|
|
81
|
+
type="button"
|
|
82
|
+
aria-label="Notifications"
|
|
83
|
+
>
|
|
84
|
+
<span class="pf-c-notification-badge pf-m-read">
|
|
85
|
+
<i class="pf-icon-bell" aria-hidden="true"></i>
|
|
86
|
+
<span class="pf-c-notification-badge__count">24</span>
|
|
87
|
+
</span>
|
|
88
|
+
</button>
|
|
89
|
+
|
|
90
|
+
<button
|
|
91
|
+
class="pf-c-button pf-m-plain"
|
|
92
|
+
type="button"
|
|
93
|
+
aria-label="Unread notifications"
|
|
94
|
+
>
|
|
95
|
+
<span class="pf-c-notification-badge pf-m-unread">
|
|
96
|
+
<i class="pf-icon-bell" aria-hidden="true"></i>
|
|
97
|
+
<span class="pf-c-notification-badge__count">25</span>
|
|
98
|
+
</span>
|
|
99
|
+
</button>
|
|
100
|
+
|
|
101
|
+
<button
|
|
102
|
+
class="pf-c-button pf-m-plain"
|
|
103
|
+
type="button"
|
|
104
|
+
aria-label="Attention notifications"
|
|
105
|
+
>
|
|
106
|
+
<span class="pf-c-notification-badge pf-m-attention">
|
|
107
|
+
<i class="pf-icon-attention-bell" aria-hidden="true"></i>
|
|
108
|
+
<span class="pf-c-notification-badge__count">26</span>
|
|
109
|
+
</span>
|
|
110
|
+
</button>
|
|
111
|
+
|
|
112
|
+
<br />
|
|
113
|
+
<br />
|
|
114
|
+
|
|
115
|
+
<button class="pf-c-button pf-m-plain" type="button" aria-label="Tasks">
|
|
116
|
+
<span class="pf-c-notification-badge pf-m-read">
|
|
117
|
+
<i class="pf-icon-task" aria-hidden="true"></i>
|
|
118
|
+
<span class="pf-c-notification-badge__count">24</span>
|
|
119
|
+
</span>
|
|
120
|
+
</button>
|
|
121
|
+
|
|
122
|
+
<button
|
|
123
|
+
class="pf-c-button pf-m-plain"
|
|
124
|
+
type="button"
|
|
125
|
+
aria-label="Unread tasks"
|
|
126
|
+
>
|
|
127
|
+
<span class="pf-c-notification-badge pf-m-unread">
|
|
128
|
+
<i class="pf-icon-task" aria-hidden="true"></i>
|
|
129
|
+
<span class="pf-c-notification-badge__count">25</span>
|
|
130
|
+
</span>
|
|
131
|
+
</button>
|
|
132
|
+
|
|
133
|
+
<button
|
|
134
|
+
class="pf-c-button pf-m-plain"
|
|
135
|
+
type="button"
|
|
136
|
+
aria-label="Attention tasks"
|
|
137
|
+
>
|
|
138
|
+
<span class="pf-c-notification-badge pf-m-attention">
|
|
139
|
+
<i class="pf-icon-task" aria-hidden="true"></i>
|
|
140
|
+
<span class="pf-c-notification-badge__count">26</span>
|
|
141
|
+
</span>
|
|
142
|
+
</button>
|
|
143
|
+
</div>
|
|
122
144
|
|
|
123
145
|
```
|
|
124
146
|
|
|
@@ -126,7 +148,9 @@ cssPrefix: pf-c-notification-badge
|
|
|
126
148
|
|
|
127
149
|
### Overview
|
|
128
150
|
|
|
129
|
-
Always add a modifier class. Never use the class `.pf-c-notification-badge` on its own.
|
|
151
|
+
Always add a modifier class. Never use the class `.pf-c-notification-badge` on its own. This component is designed to be used within a dark component such as the [masthead](../masthead).
|
|
152
|
+
|
|
153
|
+
Note: The [page component](../page) currently handles the selected state styling of the notification badge using the page header tools item styling. If this component is used elsewhere, custom styling may be needed to correctly indicate the selected state.
|
|
130
154
|
|
|
131
155
|
### Accessibility
|
|
132
156
|
|
|
@@ -106,4 +106,4 @@ Below are the steps for adding a custom icon to the [pficon icons](/icons) icon
|
|
|
106
106
|
- Edit `src/patternfly/assets/pficon/pficon.scss` and prefix the `src: url()` paths for the icon font files with the global icon font path (e.g., `url('#{$pf-global--fonticon-path}/pficon.woff2')`).
|
|
107
107
|
- Run `./scripts/iconList.sh` to update `src/site/pages/icons.md`, which serves the pficon icon preview page on the dev server served at `/icons`.
|
|
108
108
|
- Restart the dev server and verify the icons look correct on `/icons`.
|
|
109
|
-
- **Note**: This step may require clearing your cache.
|
|
109
|
+
- **Note**: This step may require clearing your cache.
|
package/layouts/_all.scss
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
@import "./Bullseye/bullseye
|
|
2
|
-
@import "./Flex/flex
|
|
3
|
-
@import "./Gallery/gallery
|
|
4
|
-
@import "./Grid/grid
|
|
5
|
-
@import "./Level/level
|
|
6
|
-
@import "./Split/split
|
|
7
|
-
@import "./Stack/stack
|
|
1
|
+
@import "./Bullseye/bullseye";
|
|
2
|
+
@import "./Flex/flex";
|
|
3
|
+
@import "./Gallery/gallery";
|
|
4
|
+
@import "./Grid/grid";
|
|
5
|
+
@import "./Level/level";
|
|
6
|
+
@import "./Split/split";
|
|
7
|
+
@import "./Stack/stack";
|