@patternfly/patternfly 4.151.1 → 4.152.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/RELEASE-NOTES.md +37 -1
- package/assets/icons/{fa-unicodes.json → iconUnicodes.json} +123 -0
- package/assets/pficon/pficon.woff +0 -0
- package/assets/pficon/pficon.woff2 +0 -0
- package/components/Nav/nav.css +1 -1
- package/components/Nav/nav.scss +1 -1
- package/components/Tooltip/tooltip.css +18 -4
- package/components/Tooltip/tooltip.scss +42 -4
- package/docs/components/Tooltip/examples/Tooltip.md +56 -10
- package/package.json +1 -1
- package/patternfly-no-reset.css +19 -5
- package/patternfly.css +19 -5
- package/patternfly.min.css +1 -1
- package/patternfly.min.css.map +1 -1
package/RELEASE-NOTES.md
CHANGED
|
@@ -4,6 +4,42 @@ section: developer-resources
|
|
|
4
4
|
releaseNoteTOC: true
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
+
## 2021.14 release notes (2021-10-26)
|
|
8
|
+
Packages released:
|
|
9
|
+
- [@patternfly/patternfly@v4.151.4](https://www.npmjs.com/package/@patternfly/patternfly/v/4.151.4)
|
|
10
|
+
|
|
11
|
+
### Components
|
|
12
|
+
- **App launcher, menu, select:** Fixed favorite colors ([#4437](https://github.com/patternfly/patternfly/pull/4437))
|
|
13
|
+
- **Card:** Added hoverable/selectable/selected-raised ([#4425](https://github.com/patternfly/patternfly/pull/4425))
|
|
14
|
+
- **Context selector:** Added demos ([#4454](https://github.com/patternfly/patternfly/pull/4454))
|
|
15
|
+
- **Form:** Added group role to section and field group ([#4424](https://github.com/patternfly/patternfly/pull/4424))
|
|
16
|
+
- **Modal:** Added demo to link form to submit button in footer ([#4432](https://github.com/patternfly/patternfly/pull/4432))
|
|
17
|
+
- **Nav:**
|
|
18
|
+
- Added third level expansion ([#4460](https://github.com/patternfly/patternfly/pull/4460))
|
|
19
|
+
- Removed broken icon font size var ([#4473](https://github.com/patternfly/patternfly/pull/4473))
|
|
20
|
+
- **Pagination:** Added indeterminate count example ([#4428](https://github.com/patternfly/patternfly/pull/4428))
|
|
21
|
+
- **Panel:** Added panel component ([#4456](https://github.com/patternfly/patternfly/pull/4456))
|
|
22
|
+
- **Popover:**
|
|
23
|
+
- Added alert styling ([#4452](https://github.com/patternfly/patternfly/pull/4452))
|
|
24
|
+
- Increased box shadow from medium to large ([#4457](https://github.com/patternfly/patternfly/pull/4457))
|
|
25
|
+
- **Select:** Added vars for width/min-width ([#4443](https://github.com/patternfly/patternfly/pull/4443))
|
|
26
|
+
- **Table:** Added nested headers ([#4448](https://github.com/patternfly/patternfly/pull/4448))
|
|
27
|
+
- **Text input group:** Moved icon modifier to main element ([#4465](https://github.com/patternfly/patternfly/pull/4465))
|
|
28
|
+
- **Tile:** Updated hover/selected styles ([#4439](https://github.com/patternfly/patternfly/pull/4439))
|
|
29
|
+
- **Toolbar:** Renamed sticky-top to sticky ([#4461](https://github.com/patternfly/patternfly/pull/4461))
|
|
30
|
+
- **Tooltip:** Updated spacing, arrow ([#4462](https://github.com/patternfly/patternfly/pull/4462))
|
|
31
|
+
|
|
32
|
+
### Other
|
|
33
|
+
- **Build:** Fix select border minification ([#4442](https://github.com/patternfly/patternfly/pull/4442))
|
|
34
|
+
- **Docs:**
|
|
35
|
+
- Promote beta components ([#4459](https://github.com/patternfly/patternfly/pull/4459))
|
|
36
|
+
- Renamed drag drop to drag and drop in sidebar ([#4450](https://github.com/patternfly/patternfly/pull/4450))
|
|
37
|
+
- **Global:** Updated use of date element in examples (#4412) ([#4423](https://github.com/patternfly/patternfly/pull/4423))
|
|
38
|
+
- **Icons:**
|
|
39
|
+
- Copied unicodes from PF3 icons, make new icon unicodes persist ([#4402](https://github.com/patternfly/patternfly/pull/4402))
|
|
40
|
+
- Moved unicodes json write to src so it's bundled with build ([#4468](https://github.com/patternfly/patternfly/pull/4468))
|
|
41
|
+
|
|
42
|
+
|
|
7
43
|
## 2021.13 release notes (2021-10-13)
|
|
8
44
|
Packages released:
|
|
9
45
|
- [@patternfly/patternfly@v4.144.5](https://www.npmjs.com/package/@patternfly/patternfly/v/4.144.5)
|
|
@@ -12,8 +48,8 @@ Packages released:
|
|
|
12
48
|
- **Backdrop:** Added var for position to allow customization ([#4391](https://github.com/patternfly/patternfly/pull/4391))
|
|
13
49
|
- **Banner:** Added link style ([#4383](https://github.com/patternfly/patternfly/pull/4383))
|
|
14
50
|
- **Card:**
|
|
15
|
-
* Fixed demo image paths ([#4400](https://github.com/patternfly/patternfly/pull/4400))
|
|
16
51
|
* Updated log view and event view demos ([#4371](https://github.com/patternfly/patternfly/pull/4371))
|
|
52
|
+
* Fixed demo image paths ([#4400](https://github.com/patternfly/patternfly/pull/4400))
|
|
17
53
|
- **Drag drop:**
|
|
18
54
|
* Added drag drop ([#4398](https://github.com/patternfly/patternfly/pull/4398))
|
|
19
55
|
* Moved drag drop styles into component ([#4404](https://github.com/patternfly/patternfly/pull/4404))
|
|
@@ -1,4 +1,127 @@
|
|
|
1
1
|
{
|
|
2
|
+
"pf-icon-add-circle-o": "E61B",
|
|
3
|
+
"pf-icon-ansible-tower": "E950",
|
|
4
|
+
"pf-icon-applications": "E936",
|
|
5
|
+
"pf-icon-arrow": "E929",
|
|
6
|
+
"pf-icon-asleep": "E92E",
|
|
7
|
+
"pf-icon-attention-bell": "E951",
|
|
8
|
+
"pf-icon-automation": "E937",
|
|
9
|
+
"pf-icon-bell": "E952",
|
|
10
|
+
"pf-icon-blueprint": "E915",
|
|
11
|
+
"pf-icon-build": "E902",
|
|
12
|
+
"pf-icon-builder-image": "E800",
|
|
13
|
+
"pf-icon-bundle": "E918",
|
|
14
|
+
"pf-icon-catalog": "E953",
|
|
15
|
+
"pf-icon-chat": "E954",
|
|
16
|
+
"pf-icon-close": "E60B",
|
|
17
|
+
"pf-icon-cloud-security": "E903",
|
|
18
|
+
"pf-icon-cloud-tenant": "E904",
|
|
19
|
+
"pf-icon-cluster": "E620",
|
|
20
|
+
"pf-icon-connected": "E938",
|
|
21
|
+
"pf-icon-container-node": "E621",
|
|
22
|
+
"pf-icon-cpu": "E927",
|
|
23
|
+
"pf-icon-degraded": "E91B",
|
|
24
|
+
"pf-icon-disconnected": "E955",
|
|
25
|
+
"pf-icon-domain": "E919",
|
|
26
|
+
"pf-icon-edit": "E60A",
|
|
27
|
+
"pf-icon-enhancement": "E93A",
|
|
28
|
+
"pf-icon-enterprise": "E906",
|
|
29
|
+
"pf-icon-equalizer": "E956",
|
|
30
|
+
"pf-icon-error-circle-o": "E926",
|
|
31
|
+
"pf-icon-export": "E616",
|
|
32
|
+
"pf-icon-filter": "E943",
|
|
33
|
+
"pf-icon-flavor": "E957",
|
|
34
|
+
"pf-icon-folder-close": "E607",
|
|
35
|
+
"pf-icon-folder-open": "E606",
|
|
36
|
+
"pf-icon-globe-route": "E958",
|
|
37
|
+
"pf-icon-help": "E605",
|
|
38
|
+
"pf-icon-history": "E617",
|
|
39
|
+
"pf-icon-home": "E618",
|
|
40
|
+
"pf-icon-import": "E615",
|
|
41
|
+
"pf-icon-in-progress": "E933",
|
|
42
|
+
"pf-icon-info": "E92B",
|
|
43
|
+
"pf-icon-infrastructure": "E93D",
|
|
44
|
+
"pf-icon-integration": "E948",
|
|
45
|
+
"pf-icon-key": "E924",
|
|
46
|
+
"pf-icon-locked": "E923",
|
|
47
|
+
"pf-icon-maintenance": "E932",
|
|
48
|
+
"pf-icon-memory": "E908",
|
|
49
|
+
"pf-icon-messages": "E603",
|
|
50
|
+
"pf-icon-middleware": "E917",
|
|
51
|
+
"pf-icon-migration": "E931",
|
|
52
|
+
"pf-icon-module": "E959",
|
|
53
|
+
"pf-icon-monitoring": "E95A",
|
|
54
|
+
"pf-icon-namespaces": "E95B",
|
|
55
|
+
"pf-icon-network": "E909",
|
|
56
|
+
"pf-icon-new-process": "E95C",
|
|
57
|
+
"pf-icon-not-started": "E95D",
|
|
58
|
+
"pf-icon-off": "E92D",
|
|
59
|
+
"pf-icon-ok": "E602",
|
|
60
|
+
"pf-icon-on-running": "E925",
|
|
61
|
+
"pf-icon-on": "E92C",
|
|
62
|
+
"pf-icon-openshift": "E95E",
|
|
63
|
+
"pf-icon-openstack": "E95F",
|
|
64
|
+
"pf-icon-optimize": "E93E",
|
|
65
|
+
"pf-icon-orders": "E93F",
|
|
66
|
+
"pf-icon-os-image": "E960",
|
|
67
|
+
"pf-icon-package": "E961",
|
|
68
|
+
"pf-icon-panel-close": "E962",
|
|
69
|
+
"pf-icon-panel-open": "E963",
|
|
70
|
+
"pf-icon-paused": "E92F",
|
|
71
|
+
"pf-icon-pending": "E964",
|
|
72
|
+
"pf-icon-pficon-dragdrop": "E965",
|
|
73
|
+
"pf-icon-pficon-history": "E966",
|
|
74
|
+
"pf-icon-pficon-network-range": "E967",
|
|
75
|
+
"pf-icon-pficon-satellite": "E968",
|
|
76
|
+
"pf-icon-pficon-sort-common-asc": "E94E",
|
|
77
|
+
"pf-icon-pficon-sort-common-desc": "E94F",
|
|
78
|
+
"pf-icon-pficon-template": "E94C",
|
|
79
|
+
"pf-icon-pficon-vcenter": "E969",
|
|
80
|
+
"pf-icon-plugged": "E96A",
|
|
81
|
+
"pf-icon-port": "E96B",
|
|
82
|
+
"pf-icon-print": "E612",
|
|
83
|
+
"pf-icon-private": "E914",
|
|
84
|
+
"pf-icon-process-automation": "E949",
|
|
85
|
+
"pf-icon-project": "E96C",
|
|
86
|
+
"pf-icon-rebalance": "E91C",
|
|
87
|
+
"pf-icon-rebooting": "E96D",
|
|
88
|
+
"pf-icon-regions": "E90A",
|
|
89
|
+
"pf-icon-registry": "E623",
|
|
90
|
+
"pf-icon-remove2": "E96E",
|
|
91
|
+
"pf-icon-replicator": "E624",
|
|
92
|
+
"pf-icon-repository": "E90B",
|
|
93
|
+
"pf-icon-resource-pool": "E90C",
|
|
94
|
+
"pf-icon-resources-almost-empty": "E91D",
|
|
95
|
+
"pf-icon-resources-almost-full": "E912",
|
|
96
|
+
"pf-icon-resources-empty": "E96F",
|
|
97
|
+
"pf-icon-resources-full": "E913",
|
|
98
|
+
"pf-icon-running": "E970",
|
|
99
|
+
"pf-icon-save": "E601",
|
|
100
|
+
"pf-icon-screen": "E971",
|
|
101
|
+
"pf-icon-security": "E946",
|
|
102
|
+
"pf-icon-server-group": "E91A",
|
|
103
|
+
"pf-icon-server": "E90D",
|
|
104
|
+
"pf-icon-service-catalog": "E972",
|
|
105
|
+
"pf-icon-service": "E61E",
|
|
106
|
+
"pf-icon-services": "E947",
|
|
107
|
+
"pf-icon-spinner": "E973",
|
|
108
|
+
"pf-icon-spinner2": "E613",
|
|
109
|
+
"pf-icon-storage-domain": "E90E",
|
|
110
|
+
"pf-icon-task": "E974",
|
|
111
|
+
"pf-icon-tenant": "E916",
|
|
112
|
+
"pf-icon-thumb-tack": "E920",
|
|
113
|
+
"pf-icon-topology": "E608",
|
|
114
|
+
"pf-icon-trend-down": "E900",
|
|
115
|
+
"pf-icon-trend-up": "E901",
|
|
116
|
+
"pf-icon-unknown": "E935",
|
|
117
|
+
"pf-icon-unlocked": "E922",
|
|
118
|
+
"pf-icon-unplugged": "E942",
|
|
119
|
+
"pf-icon-user": "E91E",
|
|
120
|
+
"pf-icon-users": "E91F",
|
|
121
|
+
"pf-icon-virtual-machine": "E90F",
|
|
122
|
+
"pf-icon-volume": "E910",
|
|
123
|
+
"pf-icon-warning-triangle": "E975",
|
|
124
|
+
"pf-icon-zone": "E911",
|
|
2
125
|
"fa-500px": "f26e",
|
|
3
126
|
"fa-accessible-icon": "f368",
|
|
4
127
|
"fa-accusoft": "f369",
|
|
Binary file
|
|
Binary file
|
package/components/Nav/nav.css
CHANGED
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
--pf-c-nav__item--m-current--not--m-expanded__link--BackgroundColor: var(--pf-global--BackgroundColor--dark-400);
|
|
26
26
|
--pf-c-nav__link--m-current--not--m-expanded__link--after--BorderWidth: var(--pf-global--BorderWidth--xl);
|
|
27
27
|
--pf-c-nav__item__item__link--PaddingRight: var(--pf-global--spacer--xl);
|
|
28
|
-
--pf-c-nav__item__item__toggle--FontSize: var(--pf-global--
|
|
28
|
+
--pf-c-nav__item__item__toggle--FontSize: var(--pf-global--FontSize--sm);
|
|
29
29
|
--pf-c-nav__item__toggle-icon--Rotate: 0;
|
|
30
30
|
--pf-c-nav__item--m-expanded__toggle-icon--Rotate: 90deg;
|
|
31
31
|
--pf-c-nav__item--before--BorderColor: var(--pf-global--BackgroundColor--dark-200);
|
package/components/Nav/nav.scss
CHANGED
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
--pf-c-nav__item--m-current--not--m-expanded__link--BackgroundColor: var(--pf-global--BackgroundColor--dark-400);
|
|
32
32
|
--pf-c-nav__link--m-current--not--m-expanded__link--after--BorderWidth: var(--pf-global--BorderWidth--xl);
|
|
33
33
|
--pf-c-nav__item__item__link--PaddingRight: var(--pf-global--spacer--xl);
|
|
34
|
-
--pf-c-nav__item__item__toggle--FontSize: var(--pf-global--
|
|
34
|
+
--pf-c-nav__item__item__toggle--FontSize: var(--pf-global--FontSize--sm);
|
|
35
35
|
--pf-c-nav__item__toggle-icon--Rotate: 0;
|
|
36
36
|
--pf-c-nav__item--m-expanded__toggle-icon--Rotate: 90deg;
|
|
37
37
|
|
|
@@ -26,26 +26,40 @@
|
|
|
26
26
|
max-width: var(--pf-c-tooltip--MaxWidth);
|
|
27
27
|
box-shadow: var(--pf-c-tooltip--BoxShadow);
|
|
28
28
|
}
|
|
29
|
-
.pf-c-tooltip.pf-m-top .pf-c-tooltip__arrow {
|
|
29
|
+
.pf-c-tooltip.pf-m-top .pf-c-tooltip__arrow, .pf-c-tooltip.pf-m-top-left .pf-c-tooltip__arrow, .pf-c-tooltip.pf-m-top-right .pf-c-tooltip__arrow {
|
|
30
30
|
bottom: 0;
|
|
31
31
|
left: 50%;
|
|
32
32
|
transform: translateX(var(--pf-c-tooltip__arrow--m-top--TranslateX)) translateY(var(--pf-c-tooltip__arrow--m-top--TranslateY)) rotate(var(--pf-c-tooltip__arrow--m-top--Rotate));
|
|
33
33
|
}
|
|
34
|
-
.pf-c-tooltip.pf-m-bottom .pf-c-tooltip__arrow {
|
|
34
|
+
.pf-c-tooltip.pf-m-bottom .pf-c-tooltip__arrow, .pf-c-tooltip.pf-m-bottom-left .pf-c-tooltip__arrow, .pf-c-tooltip.pf-m-bottom-right .pf-c-tooltip__arrow {
|
|
35
35
|
top: 0;
|
|
36
36
|
left: 50%;
|
|
37
37
|
transform: translateX(var(--pf-c-tooltip__arrow--m-bottom--TranslateX)) translateY(var(--pf-c-tooltip__arrow--m-bottom--TranslateY)) rotate(var(--pf-c-tooltip__arrow--m-bottom--Rotate));
|
|
38
38
|
}
|
|
39
|
-
.pf-c-tooltip.pf-m-left .pf-c-tooltip__arrow {
|
|
39
|
+
.pf-c-tooltip.pf-m-left .pf-c-tooltip__arrow, .pf-c-tooltip.pf-m-left-top .pf-c-tooltip__arrow, .pf-c-tooltip.pf-m-left-bottom .pf-c-tooltip__arrow {
|
|
40
40
|
top: 50%;
|
|
41
41
|
right: 0;
|
|
42
42
|
transform: translateX(var(--pf-c-tooltip__arrow--m-left--TranslateX)) translateY(var(--pf-c-tooltip__arrow--m-left--TranslateY)) rotate(var(--pf-c-tooltip__arrow--m-left--Rotate));
|
|
43
43
|
}
|
|
44
|
-
.pf-c-tooltip.pf-m-right .pf-c-tooltip__arrow {
|
|
44
|
+
.pf-c-tooltip.pf-m-right .pf-c-tooltip__arrow, .pf-c-tooltip.pf-m-right-top .pf-c-tooltip__arrow, .pf-c-tooltip.pf-m-right-bottom .pf-c-tooltip__arrow {
|
|
45
45
|
top: 50%;
|
|
46
46
|
left: 0;
|
|
47
47
|
transform: translateX(var(--pf-c-tooltip__arrow--m-right--TranslateX)) translateY(var(--pf-c-tooltip__arrow--m-right--TranslateY)) rotate(var(--pf-c-tooltip__arrow--m-right--Rotate));
|
|
48
48
|
}
|
|
49
|
+
.pf-c-tooltip.pf-m-left-top .pf-c-tooltip__arrow, .pf-c-tooltip.pf-m-right-top .pf-c-tooltip__arrow {
|
|
50
|
+
top: var(--pf-c-tooltip__arrow--Height);
|
|
51
|
+
}
|
|
52
|
+
.pf-c-tooltip.pf-m-left-bottom .pf-c-tooltip__arrow, .pf-c-tooltip.pf-m-right-bottom .pf-c-tooltip__arrow {
|
|
53
|
+
top: auto;
|
|
54
|
+
bottom: 0;
|
|
55
|
+
}
|
|
56
|
+
.pf-c-tooltip.pf-m-top-left .pf-c-tooltip__arrow, .pf-c-tooltip.pf-m-bottom-left .pf-c-tooltip__arrow {
|
|
57
|
+
left: var(--pf-c-tooltip__arrow--Width);
|
|
58
|
+
}
|
|
59
|
+
.pf-c-tooltip.pf-m-top-right .pf-c-tooltip__arrow, .pf-c-tooltip.pf-m-bottom-right .pf-c-tooltip__arrow {
|
|
60
|
+
right: 0;
|
|
61
|
+
left: auto;
|
|
62
|
+
}
|
|
49
63
|
|
|
50
64
|
.pf-c-tooltip__content {
|
|
51
65
|
position: relative;
|
|
@@ -32,7 +32,9 @@
|
|
|
32
32
|
max-width: var(--pf-c-tooltip--MaxWidth);
|
|
33
33
|
box-shadow: var(--pf-c-tooltip--BoxShadow);
|
|
34
34
|
|
|
35
|
-
&.pf-m-top
|
|
35
|
+
&.pf-m-top,
|
|
36
|
+
&.pf-m-top-left,
|
|
37
|
+
&.pf-m-top-right {
|
|
36
38
|
.pf-c-tooltip__arrow {
|
|
37
39
|
bottom: 0;
|
|
38
40
|
left: 50%;
|
|
@@ -40,7 +42,9 @@
|
|
|
40
42
|
}
|
|
41
43
|
}
|
|
42
44
|
|
|
43
|
-
&.pf-m-bottom
|
|
45
|
+
&.pf-m-bottom,
|
|
46
|
+
&.pf-m-bottom-left,
|
|
47
|
+
&.pf-m-bottom-right {
|
|
44
48
|
.pf-c-tooltip__arrow {
|
|
45
49
|
top: 0;
|
|
46
50
|
left: 50%;
|
|
@@ -48,7 +52,9 @@
|
|
|
48
52
|
}
|
|
49
53
|
}
|
|
50
54
|
|
|
51
|
-
&.pf-m-left
|
|
55
|
+
&.pf-m-left,
|
|
56
|
+
&.pf-m-left-top,
|
|
57
|
+
&.pf-m-left-bottom {
|
|
52
58
|
.pf-c-tooltip__arrow {
|
|
53
59
|
top: 50%;
|
|
54
60
|
right: 0;
|
|
@@ -56,13 +62,45 @@
|
|
|
56
62
|
}
|
|
57
63
|
}
|
|
58
64
|
|
|
59
|
-
&.pf-m-right
|
|
65
|
+
&.pf-m-right,
|
|
66
|
+
&.pf-m-right-top,
|
|
67
|
+
&.pf-m-right-bottom {
|
|
60
68
|
.pf-c-tooltip__arrow {
|
|
61
69
|
top: 50%;
|
|
62
70
|
left: 0;
|
|
63
71
|
transform: translateX(var(--pf-c-tooltip__arrow--m-right--TranslateX)) translateY(var(--pf-c-tooltip__arrow--m-right--TranslateY)) rotate(var(--pf-c-tooltip__arrow--m-right--Rotate));
|
|
64
72
|
}
|
|
65
73
|
}
|
|
74
|
+
|
|
75
|
+
&.pf-m-left-top,
|
|
76
|
+
&.pf-m-right-top {
|
|
77
|
+
.pf-c-tooltip__arrow {
|
|
78
|
+
top: var(--pf-c-tooltip__arrow--Height);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
&.pf-m-left-bottom,
|
|
83
|
+
&.pf-m-right-bottom {
|
|
84
|
+
.pf-c-tooltip__arrow {
|
|
85
|
+
top: auto;
|
|
86
|
+
bottom: 0;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
&.pf-m-top-left,
|
|
91
|
+
&.pf-m-bottom-left {
|
|
92
|
+
.pf-c-tooltip__arrow {
|
|
93
|
+
left: var(--pf-c-tooltip__arrow--Width);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
&.pf-m-top-right,
|
|
98
|
+
&.pf-m-bottom-right {
|
|
99
|
+
.pf-c-tooltip__arrow {
|
|
100
|
+
right: 0;
|
|
101
|
+
left: auto;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
66
104
|
}
|
|
67
105
|
|
|
68
106
|
.pf-c-tooltip__content {
|
|
@@ -60,6 +60,52 @@ cssPrefix: pf-c-tooltip
|
|
|
60
60
|
|
|
61
61
|
```
|
|
62
62
|
|
|
63
|
+
### Left with top and bottom positions
|
|
64
|
+
|
|
65
|
+
```html
|
|
66
|
+
<div class="pf-c-tooltip pf-m-left-top" role="tooltip">
|
|
67
|
+
<div class="pf-c-tooltip__arrow"></div>
|
|
68
|
+
|
|
69
|
+
<div
|
|
70
|
+
class="pf-c-tooltip__content"
|
|
71
|
+
id="tooltip-left-top-content"
|
|
72
|
+
>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam id feugiat augue, nec fringilla turpis.</div>
|
|
73
|
+
</div>
|
|
74
|
+
<br />
|
|
75
|
+
<div class="pf-c-tooltip pf-m-left-bottom" role="tooltip">
|
|
76
|
+
<div class="pf-c-tooltip__arrow"></div>
|
|
77
|
+
|
|
78
|
+
<div
|
|
79
|
+
class="pf-c-tooltip__content"
|
|
80
|
+
id="tooltip-left-bottom-content"
|
|
81
|
+
>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam id feugiat augue, nec fringilla turpis.</div>
|
|
82
|
+
</div>
|
|
83
|
+
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
### Bottom with left and right positions
|
|
87
|
+
|
|
88
|
+
```html
|
|
89
|
+
<div class="pf-c-tooltip pf-m-bottom-left" role="tooltip">
|
|
90
|
+
<div class="pf-c-tooltip__arrow"></div>
|
|
91
|
+
|
|
92
|
+
<div
|
|
93
|
+
class="pf-c-tooltip__content"
|
|
94
|
+
id="tooltip-bottom-left-content"
|
|
95
|
+
>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam id feugiat augue, nec fringilla turpis.</div>
|
|
96
|
+
</div>
|
|
97
|
+
<br />
|
|
98
|
+
<div class="pf-c-tooltip pf-m-bottom-right" role="tooltip">
|
|
99
|
+
<div class="pf-c-tooltip__arrow"></div>
|
|
100
|
+
|
|
101
|
+
<div
|
|
102
|
+
class="pf-c-tooltip__content"
|
|
103
|
+
id="tooltip-bottom-right-content"
|
|
104
|
+
>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam id feugiat augue, nec fringilla turpis.</div>
|
|
105
|
+
</div>
|
|
106
|
+
|
|
107
|
+
```
|
|
108
|
+
|
|
63
109
|
### Left aligned text
|
|
64
110
|
|
|
65
111
|
```html
|
|
@@ -89,13 +135,13 @@ A tooltip is used to provide contextual information for another component on hov
|
|
|
89
135
|
|
|
90
136
|
### Usage
|
|
91
137
|
|
|
92
|
-
| Class
|
|
93
|
-
|
|
|
94
|
-
| `.pf-c-tooltip`
|
|
95
|
-
| `.pf-c-tooltip__arrow`
|
|
96
|
-
| `.pf-c-tooltip__content`
|
|
97
|
-
| `.pf-m-left`
|
|
98
|
-
| `.pf-m-right`
|
|
99
|
-
| `.pf-m-top`
|
|
100
|
-
| `.pf-m-bottom`
|
|
101
|
-
| `.pf-m-text-align-left`
|
|
138
|
+
| Class | Applied to | Outcome |
|
|
139
|
+
| --------------------------- | ------------------------ | --------------------------------------------------------------------------------------------------------------------------------- |
|
|
140
|
+
| `.pf-c-tooltip` | `<div>` | Creates a tooltip. Always use with a modifier class that positions the tooltip relative to the element it describes. **Required** |
|
|
141
|
+
| `.pf-c-tooltip__arrow` | `<div>` | Creates an arrow pointing towards the element the tooltip describes. **Required** |
|
|
142
|
+
| `.pf-c-tooltip__content` | `<div>` | Creates the body of the tooltip. **Required** |
|
|
143
|
+
| `.pf-m-left{-top/bottom}` | `.pf-c-tooltip` | Positions the tooltip to the left (or left top/left bottom) of the element. |
|
|
144
|
+
| `.pf-m-right{-top/bottom}` | `.pf-c-tooltip` | Positions the tooltip to the right (or right top/right bottom) of the element. |
|
|
145
|
+
| `.pf-m-top{-left/right}` | `.pf-c-tooltip` | Positions the tooltip to the top (or top left/top right) of the element. |
|
|
146
|
+
| `.pf-m-bottom{-left/right}` | `.pf-c-tooltip` | Positions the tooltip to the bottom (or bottom left/bottom right) of the element. |
|
|
147
|
+
| `.pf-m-text-align-left` | `.pf-c-tooltip__content` | Modifies tooltip content to text align left. |
|
package/package.json
CHANGED
package/patternfly-no-reset.css
CHANGED
|
@@ -16510,7 +16510,7 @@ ul.pf-c-list {
|
|
|
16510
16510
|
--pf-c-nav__item--m-current--not--m-expanded__link--BackgroundColor: var(--pf-global--BackgroundColor--dark-400);
|
|
16511
16511
|
--pf-c-nav__link--m-current--not--m-expanded__link--after--BorderWidth: var(--pf-global--BorderWidth--xl);
|
|
16512
16512
|
--pf-c-nav__item__item__link--PaddingRight: var(--pf-global--spacer--xl);
|
|
16513
|
-
--pf-c-nav__item__item__toggle--FontSize: var(--pf-global--
|
|
16513
|
+
--pf-c-nav__item__item__toggle--FontSize: var(--pf-global--FontSize--sm);
|
|
16514
16514
|
--pf-c-nav__item__toggle-icon--Rotate: 0;
|
|
16515
16515
|
--pf-c-nav__item--m-expanded__toggle-icon--Rotate: 90deg;
|
|
16516
16516
|
--pf-c-nav__item--before--BorderColor: var(--pf-global--BackgroundColor--dark-200);
|
|
@@ -26237,26 +26237,40 @@ svg.pf-c-spinner.pf-m-xl {
|
|
|
26237
26237
|
max-width: var(--pf-c-tooltip--MaxWidth);
|
|
26238
26238
|
box-shadow: var(--pf-c-tooltip--BoxShadow);
|
|
26239
26239
|
}
|
|
26240
|
-
.pf-c-tooltip.pf-m-top .pf-c-tooltip__arrow {
|
|
26240
|
+
.pf-c-tooltip.pf-m-top .pf-c-tooltip__arrow, .pf-c-tooltip.pf-m-top-left .pf-c-tooltip__arrow, .pf-c-tooltip.pf-m-top-right .pf-c-tooltip__arrow {
|
|
26241
26241
|
bottom: 0;
|
|
26242
26242
|
left: 50%;
|
|
26243
26243
|
transform: translateX(var(--pf-c-tooltip__arrow--m-top--TranslateX)) translateY(var(--pf-c-tooltip__arrow--m-top--TranslateY)) rotate(var(--pf-c-tooltip__arrow--m-top--Rotate));
|
|
26244
26244
|
}
|
|
26245
|
-
.pf-c-tooltip.pf-m-bottom .pf-c-tooltip__arrow {
|
|
26245
|
+
.pf-c-tooltip.pf-m-bottom .pf-c-tooltip__arrow, .pf-c-tooltip.pf-m-bottom-left .pf-c-tooltip__arrow, .pf-c-tooltip.pf-m-bottom-right .pf-c-tooltip__arrow {
|
|
26246
26246
|
top: 0;
|
|
26247
26247
|
left: 50%;
|
|
26248
26248
|
transform: translateX(var(--pf-c-tooltip__arrow--m-bottom--TranslateX)) translateY(var(--pf-c-tooltip__arrow--m-bottom--TranslateY)) rotate(var(--pf-c-tooltip__arrow--m-bottom--Rotate));
|
|
26249
26249
|
}
|
|
26250
|
-
.pf-c-tooltip.pf-m-left .pf-c-tooltip__arrow {
|
|
26250
|
+
.pf-c-tooltip.pf-m-left .pf-c-tooltip__arrow, .pf-c-tooltip.pf-m-left-top .pf-c-tooltip__arrow, .pf-c-tooltip.pf-m-left-bottom .pf-c-tooltip__arrow {
|
|
26251
26251
|
top: 50%;
|
|
26252
26252
|
right: 0;
|
|
26253
26253
|
transform: translateX(var(--pf-c-tooltip__arrow--m-left--TranslateX)) translateY(var(--pf-c-tooltip__arrow--m-left--TranslateY)) rotate(var(--pf-c-tooltip__arrow--m-left--Rotate));
|
|
26254
26254
|
}
|
|
26255
|
-
.pf-c-tooltip.pf-m-right .pf-c-tooltip__arrow {
|
|
26255
|
+
.pf-c-tooltip.pf-m-right .pf-c-tooltip__arrow, .pf-c-tooltip.pf-m-right-top .pf-c-tooltip__arrow, .pf-c-tooltip.pf-m-right-bottom .pf-c-tooltip__arrow {
|
|
26256
26256
|
top: 50%;
|
|
26257
26257
|
left: 0;
|
|
26258
26258
|
transform: translateX(var(--pf-c-tooltip__arrow--m-right--TranslateX)) translateY(var(--pf-c-tooltip__arrow--m-right--TranslateY)) rotate(var(--pf-c-tooltip__arrow--m-right--Rotate));
|
|
26259
26259
|
}
|
|
26260
|
+
.pf-c-tooltip.pf-m-left-top .pf-c-tooltip__arrow, .pf-c-tooltip.pf-m-right-top .pf-c-tooltip__arrow {
|
|
26261
|
+
top: var(--pf-c-tooltip__arrow--Height);
|
|
26262
|
+
}
|
|
26263
|
+
.pf-c-tooltip.pf-m-left-bottom .pf-c-tooltip__arrow, .pf-c-tooltip.pf-m-right-bottom .pf-c-tooltip__arrow {
|
|
26264
|
+
top: auto;
|
|
26265
|
+
bottom: 0;
|
|
26266
|
+
}
|
|
26267
|
+
.pf-c-tooltip.pf-m-top-left .pf-c-tooltip__arrow, .pf-c-tooltip.pf-m-bottom-left .pf-c-tooltip__arrow {
|
|
26268
|
+
left: var(--pf-c-tooltip__arrow--Width);
|
|
26269
|
+
}
|
|
26270
|
+
.pf-c-tooltip.pf-m-top-right .pf-c-tooltip__arrow, .pf-c-tooltip.pf-m-bottom-right .pf-c-tooltip__arrow {
|
|
26271
|
+
right: 0;
|
|
26272
|
+
left: auto;
|
|
26273
|
+
}
|
|
26260
26274
|
|
|
26261
26275
|
.pf-c-tooltip__content {
|
|
26262
26276
|
position: relative;
|
package/patternfly.css
CHANGED
|
@@ -16646,7 +16646,7 @@ ul.pf-c-list {
|
|
|
16646
16646
|
--pf-c-nav__item--m-current--not--m-expanded__link--BackgroundColor: var(--pf-global--BackgroundColor--dark-400);
|
|
16647
16647
|
--pf-c-nav__link--m-current--not--m-expanded__link--after--BorderWidth: var(--pf-global--BorderWidth--xl);
|
|
16648
16648
|
--pf-c-nav__item__item__link--PaddingRight: var(--pf-global--spacer--xl);
|
|
16649
|
-
--pf-c-nav__item__item__toggle--FontSize: var(--pf-global--
|
|
16649
|
+
--pf-c-nav__item__item__toggle--FontSize: var(--pf-global--FontSize--sm);
|
|
16650
16650
|
--pf-c-nav__item__toggle-icon--Rotate: 0;
|
|
16651
16651
|
--pf-c-nav__item--m-expanded__toggle-icon--Rotate: 90deg;
|
|
16652
16652
|
--pf-c-nav__item--before--BorderColor: var(--pf-global--BackgroundColor--dark-200);
|
|
@@ -26373,26 +26373,40 @@ svg.pf-c-spinner.pf-m-xl {
|
|
|
26373
26373
|
max-width: var(--pf-c-tooltip--MaxWidth);
|
|
26374
26374
|
box-shadow: var(--pf-c-tooltip--BoxShadow);
|
|
26375
26375
|
}
|
|
26376
|
-
.pf-c-tooltip.pf-m-top .pf-c-tooltip__arrow {
|
|
26376
|
+
.pf-c-tooltip.pf-m-top .pf-c-tooltip__arrow, .pf-c-tooltip.pf-m-top-left .pf-c-tooltip__arrow, .pf-c-tooltip.pf-m-top-right .pf-c-tooltip__arrow {
|
|
26377
26377
|
bottom: 0;
|
|
26378
26378
|
left: 50%;
|
|
26379
26379
|
transform: translateX(var(--pf-c-tooltip__arrow--m-top--TranslateX)) translateY(var(--pf-c-tooltip__arrow--m-top--TranslateY)) rotate(var(--pf-c-tooltip__arrow--m-top--Rotate));
|
|
26380
26380
|
}
|
|
26381
|
-
.pf-c-tooltip.pf-m-bottom .pf-c-tooltip__arrow {
|
|
26381
|
+
.pf-c-tooltip.pf-m-bottom .pf-c-tooltip__arrow, .pf-c-tooltip.pf-m-bottom-left .pf-c-tooltip__arrow, .pf-c-tooltip.pf-m-bottom-right .pf-c-tooltip__arrow {
|
|
26382
26382
|
top: 0;
|
|
26383
26383
|
left: 50%;
|
|
26384
26384
|
transform: translateX(var(--pf-c-tooltip__arrow--m-bottom--TranslateX)) translateY(var(--pf-c-tooltip__arrow--m-bottom--TranslateY)) rotate(var(--pf-c-tooltip__arrow--m-bottom--Rotate));
|
|
26385
26385
|
}
|
|
26386
|
-
.pf-c-tooltip.pf-m-left .pf-c-tooltip__arrow {
|
|
26386
|
+
.pf-c-tooltip.pf-m-left .pf-c-tooltip__arrow, .pf-c-tooltip.pf-m-left-top .pf-c-tooltip__arrow, .pf-c-tooltip.pf-m-left-bottom .pf-c-tooltip__arrow {
|
|
26387
26387
|
top: 50%;
|
|
26388
26388
|
right: 0;
|
|
26389
26389
|
transform: translateX(var(--pf-c-tooltip__arrow--m-left--TranslateX)) translateY(var(--pf-c-tooltip__arrow--m-left--TranslateY)) rotate(var(--pf-c-tooltip__arrow--m-left--Rotate));
|
|
26390
26390
|
}
|
|
26391
|
-
.pf-c-tooltip.pf-m-right .pf-c-tooltip__arrow {
|
|
26391
|
+
.pf-c-tooltip.pf-m-right .pf-c-tooltip__arrow, .pf-c-tooltip.pf-m-right-top .pf-c-tooltip__arrow, .pf-c-tooltip.pf-m-right-bottom .pf-c-tooltip__arrow {
|
|
26392
26392
|
top: 50%;
|
|
26393
26393
|
left: 0;
|
|
26394
26394
|
transform: translateX(var(--pf-c-tooltip__arrow--m-right--TranslateX)) translateY(var(--pf-c-tooltip__arrow--m-right--TranslateY)) rotate(var(--pf-c-tooltip__arrow--m-right--Rotate));
|
|
26395
26395
|
}
|
|
26396
|
+
.pf-c-tooltip.pf-m-left-top .pf-c-tooltip__arrow, .pf-c-tooltip.pf-m-right-top .pf-c-tooltip__arrow {
|
|
26397
|
+
top: var(--pf-c-tooltip__arrow--Height);
|
|
26398
|
+
}
|
|
26399
|
+
.pf-c-tooltip.pf-m-left-bottom .pf-c-tooltip__arrow, .pf-c-tooltip.pf-m-right-bottom .pf-c-tooltip__arrow {
|
|
26400
|
+
top: auto;
|
|
26401
|
+
bottom: 0;
|
|
26402
|
+
}
|
|
26403
|
+
.pf-c-tooltip.pf-m-top-left .pf-c-tooltip__arrow, .pf-c-tooltip.pf-m-bottom-left .pf-c-tooltip__arrow {
|
|
26404
|
+
left: var(--pf-c-tooltip__arrow--Width);
|
|
26405
|
+
}
|
|
26406
|
+
.pf-c-tooltip.pf-m-top-right .pf-c-tooltip__arrow, .pf-c-tooltip.pf-m-bottom-right .pf-c-tooltip__arrow {
|
|
26407
|
+
right: 0;
|
|
26408
|
+
left: auto;
|
|
26409
|
+
}
|
|
26396
26410
|
|
|
26397
26411
|
.pf-c-tooltip__content {
|
|
26398
26412
|
position: relative;
|