@patternfly/react-core 5.0.0-alpha.50 → 5.0.0-alpha.51
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/CHANGELOG.md +4 -0
- package/dist/esm/components/BackgroundImage/BackgroundImage.d.ts.map +1 -1
- package/dist/esm/components/BackgroundImage/BackgroundImage.js +34 -36
- package/dist/esm/components/BackgroundImage/BackgroundImage.js.map +1 -1
- package/dist/esm/components/Icon/Icon.d.ts +1 -1
- package/dist/esm/components/Icon/Icon.d.ts.map +1 -1
- package/dist/esm/components/Modal/ModalContent.js.map +1 -1
- package/dist/esm/components/NotificationDrawer/NotificationDrawerListItem.d.ts +1 -1
- package/dist/esm/components/NotificationDrawer/NotificationDrawerListItem.d.ts.map +1 -1
- package/dist/esm/components/NotificationDrawer/NotificationDrawerListItem.js +1 -1
- package/dist/esm/components/NotificationDrawer/NotificationDrawerListItem.js.map +1 -1
- package/dist/esm/components/Popover/Popover.js +1 -1
- package/dist/esm/components/Popover/Popover.js.map +1 -1
- package/dist/js/components/BackgroundImage/BackgroundImage.d.ts.map +1 -1
- package/dist/js/components/BackgroundImage/BackgroundImage.js +34 -36
- package/dist/js/components/BackgroundImage/BackgroundImage.js.map +1 -1
- package/dist/js/components/Icon/Icon.d.ts +1 -1
- package/dist/js/components/Icon/Icon.d.ts.map +1 -1
- package/dist/js/components/Modal/ModalContent.js.map +1 -1
- package/dist/js/components/NotificationDrawer/NotificationDrawerListItem.d.ts +1 -1
- package/dist/js/components/NotificationDrawer/NotificationDrawerListItem.d.ts.map +1 -1
- package/dist/js/components/NotificationDrawer/NotificationDrawerListItem.js +1 -1
- package/dist/js/components/NotificationDrawer/NotificationDrawerListItem.js.map +1 -1
- package/dist/js/components/Popover/Popover.js +1 -1
- package/dist/js/components/Popover/Popover.js.map +1 -1
- package/dist/styles/assets/images/pfbg-icon.svg +1 -0
- package/dist/styles/assets/pficon/pficon.scss +1 -2
- package/dist/styles/base-no-reset.css +9 -32
- package/dist/styles/base.css +43 -73
- package/dist/umd/react-core.min.js +2 -2
- package/package.json +6 -6
- package/scripts/copyStyles.js +1 -1
- package/src/components/BackgroundImage/BackgroundImage.tsx +47 -44
- package/src/components/BackgroundImage/__tests__/__snapshots__/BackgroundImage.test.tsx.snap +4 -64
- package/src/components/Icon/Icon.tsx +1 -1
- package/src/components/Icon/__tests__/Icon.test.tsx +2 -2
- package/src/components/Icon/examples/IconStatus.tsx +1 -1
- package/src/components/LoginPage/__tests__/__snapshots__/LoginPage.test.tsx.snap +2 -32
- package/src/components/Modal/ModalContent.tsx +1 -1
- package/src/components/NotificationDrawer/NotificationDrawerListItem.tsx +2 -2
- package/src/components/NotificationDrawer/__tests__/__snapshots__/NotificationDrawerListItem.test.tsx.snap +1 -1
- package/src/components/Popover/Popover.tsx +1 -1
- package/dist/styles/assets/fonts/RedHatDisplay/RedHatDisplay-Black.woff +0 -0
- package/dist/styles/assets/fonts/RedHatDisplay/RedHatDisplay-BlackItalic.woff +0 -0
- package/dist/styles/assets/fonts/RedHatDisplay/RedHatDisplay-Bold.woff +0 -0
- package/dist/styles/assets/fonts/RedHatDisplay/RedHatDisplay-BoldItalic.woff +0 -0
- package/dist/styles/assets/fonts/RedHatDisplay/RedHatDisplay-Italic.woff +0 -0
- package/dist/styles/assets/fonts/RedHatDisplay/RedHatDisplay-Medium.woff +0 -0
- package/dist/styles/assets/fonts/RedHatDisplay/RedHatDisplay-MediumItalic.woff +0 -0
- package/dist/styles/assets/fonts/RedHatDisplay/RedHatDisplay-Regular.woff +0 -0
- package/dist/styles/assets/fonts/RedHatText/RedHatText-Bold.woff +0 -0
- package/dist/styles/assets/fonts/RedHatText/RedHatText-BoldItalic.woff +0 -0
- package/dist/styles/assets/fonts/RedHatText/RedHatText-Italic.woff +0 -0
- package/dist/styles/assets/fonts/RedHatText/RedHatText-Medium.woff +0 -0
- package/dist/styles/assets/fonts/RedHatText/RedHatText-MediumItalic.woff +0 -0
- package/dist/styles/assets/fonts/RedHatText/RedHatText-Regular.woff +0 -0
- package/dist/styles/assets/pficon/pficon.woff +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@patternfly/react-core",
|
|
3
|
-
"version": "5.0.0-alpha.
|
|
3
|
+
"version": "5.0.0-alpha.51",
|
|
4
4
|
"description": "This library provides a set of common React components for use with the PatternFly reference implementation.",
|
|
5
5
|
"main": "dist/js/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -45,15 +45,15 @@
|
|
|
45
45
|
"subpaths": "node scripts/createSubpaths.js"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@patternfly/react-icons": "^5.0.0-alpha.
|
|
49
|
-
"@patternfly/react-styles": "^5.0.0-alpha.
|
|
50
|
-
"@patternfly/react-tokens": "^5.0.0-alpha.
|
|
48
|
+
"@patternfly/react-icons": "^5.0.0-alpha.8",
|
|
49
|
+
"@patternfly/react-styles": "^5.0.0-alpha.6",
|
|
50
|
+
"@patternfly/react-tokens": "^5.0.0-alpha.6",
|
|
51
51
|
"focus-trap": "7.4.0",
|
|
52
52
|
"react-dropzone": "^14.2.3",
|
|
53
53
|
"tslib": "^2.5.0"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@patternfly/patternfly": "5.0.0-alpha.
|
|
56
|
+
"@patternfly/patternfly": "5.0.0-alpha.37",
|
|
57
57
|
"@rollup/plugin-commonjs": "^24.0.0",
|
|
58
58
|
"@rollup/plugin-node-resolve": "^15.0.1",
|
|
59
59
|
"@rollup/plugin-replace": "^5.0.2",
|
|
@@ -70,5 +70,5 @@
|
|
|
70
70
|
"react": "^17 || ^18",
|
|
71
71
|
"react-dom": "^17 || ^18"
|
|
72
72
|
},
|
|
73
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "1b1bde2cf964d501b24a499274099e1de0b60425"
|
|
74
74
|
}
|
package/scripts/copyStyles.js
CHANGED
|
@@ -24,7 +24,7 @@ copySync(join(pfDir, 'assets/fonts'), join(stylesDir, 'assets/fonts'), {
|
|
|
24
24
|
// Copy css
|
|
25
25
|
const baseCssFiles = {
|
|
26
26
|
'base.css': 'patternfly-base.css',
|
|
27
|
-
'base-no-reset.css': 'patternfly-base-no-
|
|
27
|
+
'base-no-reset.css': 'patternfly-base-no-globals.css'
|
|
28
28
|
};
|
|
29
29
|
|
|
30
30
|
for (const [targetCss, baseCss] of Object.entries(baseCssFiles)) {
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
2
|
+
// Commented imports that no longer exist. This component will be updated with issue #8452 resolution
|
|
3
|
+
|
|
4
|
+
// import cssVar from '@patternfly/react-tokens/dist/esm/c_background_image_BackgroundImage';
|
|
5
|
+
// import cssVarName2x from '@patternfly/react-tokens/dist/esm/c_background_image_BackgroundImage_2x';
|
|
6
|
+
// import cssVarNameSm from '@patternfly/react-tokens/dist/esm/c_background_image_BackgroundImage_sm';
|
|
7
|
+
// import cssVarNameSm2x from '@patternfly/react-tokens/dist/esm/c_background_image_BackgroundImage_sm_2x';
|
|
8
|
+
// import cssVarNameLg from '@patternfly/react-tokens/dist/esm/c_background_image_BackgroundImage_lg';
|
|
9
|
+
// import cssVarNameFilter from '@patternfly/react-tokens/dist/esm/c_background_image_Filter';
|
|
8
10
|
import { css } from '@patternfly/react-styles';
|
|
9
11
|
import styles from '@patternfly/react-styles/css/components/BackgroundImage/background-image';
|
|
10
12
|
|
|
@@ -16,17 +18,17 @@ export interface BackgroundImageSrcMap {
|
|
|
16
18
|
lg: string;
|
|
17
19
|
}
|
|
18
20
|
|
|
19
|
-
const defaultFilter = (
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
);
|
|
21
|
+
// const defaultFilter = (
|
|
22
|
+
// <filter>
|
|
23
|
+
// <feColorMatrix type="matrix" values="1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 1 0"></feColorMatrix>
|
|
24
|
+
// <feComponentTransfer colorInterpolationFilters="sRGB" result="duotone">
|
|
25
|
+
// <feFuncR type="table" tableValues="0.086274509803922 0.43921568627451"></feFuncR>
|
|
26
|
+
// <feFuncG type="table" tableValues="0.086274509803922 0.43921568627451"></feFuncG>
|
|
27
|
+
// <feFuncB type="table" tableValues="0.086274509803922 0.43921568627451"></feFuncB>
|
|
28
|
+
// <feFuncA type="table" tableValues="0 1"></feFuncA>
|
|
29
|
+
// </feComponentTransfer>
|
|
30
|
+
// </filter>
|
|
31
|
+
// );
|
|
30
32
|
|
|
31
33
|
export interface BackgroundImageProps extends Omit<React.HTMLProps<HTMLDivElement>, 'src'> {
|
|
32
34
|
/** Additional classes added to the background. */
|
|
@@ -37,41 +39,42 @@ export interface BackgroundImageProps extends Omit<React.HTMLProps<HTMLDivElemen
|
|
|
37
39
|
src: string | BackgroundImageSrcMap;
|
|
38
40
|
}
|
|
39
41
|
|
|
40
|
-
let filterCounter = 0;
|
|
42
|
+
// let filterCounter = 0;
|
|
41
43
|
|
|
42
44
|
export const BackgroundImage: React.FunctionComponent<BackgroundImageProps> = ({
|
|
43
45
|
className,
|
|
44
|
-
src,
|
|
45
|
-
filter = defaultFilter,
|
|
46
|
+
// src,
|
|
47
|
+
// filter = defaultFilter,
|
|
46
48
|
...props
|
|
47
|
-
}: BackgroundImageProps) =>
|
|
48
|
-
const getUrlValue = (size: keyof BackgroundImageSrcMap) => {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
49
|
+
}: BackgroundImageProps) =>
|
|
50
|
+
// const getUrlValue = (size: keyof BackgroundImageSrcMap) => {
|
|
51
|
+
// if (typeof src === 'string') {
|
|
52
|
+
// return `url(${src})`;
|
|
53
|
+
// } else if (typeof src === 'object') {
|
|
54
|
+
// return `url(${src[size]})`;
|
|
55
|
+
// }
|
|
54
56
|
|
|
55
|
-
|
|
56
|
-
};
|
|
57
|
+
// return '';
|
|
58
|
+
// };
|
|
57
59
|
|
|
58
|
-
const filterNum = React.useMemo(() => filterCounter++, []);
|
|
59
|
-
const filterId = `patternfly-background-image-filter-overlay${filterNum}`;
|
|
60
|
-
const style = {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
} as React.CSSProperties;
|
|
60
|
+
// const filterNum = React.useMemo(() => filterCounter++, []);
|
|
61
|
+
// const filterId = `patternfly-background-image-filter-overlay${filterNum}`;
|
|
62
|
+
// const style = {
|
|
63
|
+
// [cssVar.name]: getUrlValue('xs'),
|
|
64
|
+
// [cssVarName2x.name]: getUrlValue('xs2x'),
|
|
65
|
+
// [cssVarNameSm.name]: getUrlValue('sm'),
|
|
66
|
+
// [cssVarNameSm2x.name]: getUrlValue('sm2x'),
|
|
67
|
+
// [cssVarNameLg.name]: getUrlValue('lg'),
|
|
68
|
+
// [cssVarNameFilter.name]: `url(#${filterId})`
|
|
69
|
+
// } as React.CSSProperties;
|
|
68
70
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
+
(
|
|
72
|
+
// TODO: removed inline style add it back with issue #8452 resolution. Also commented out the "React.cloneElement(filter, { id: filterId })} "
|
|
73
|
+
<div className={css(styles.backgroundImage, className)} {...props}>
|
|
71
74
|
<svg xmlns="http://www.w3.org/2000/svg" className="pf-c-background-image__filter" width="0" height="0">
|
|
72
|
-
{React.cloneElement(filter, { id: filterId })}
|
|
75
|
+
{/* {React.cloneElement(filter, { id: filterId })} */}
|
|
73
76
|
</svg>
|
|
74
77
|
</div>
|
|
75
|
-
)
|
|
76
|
-
|
|
78
|
+
)
|
|
79
|
+
;
|
|
77
80
|
BackgroundImage.displayName = 'BackgroundImage';
|
package/src/components/BackgroundImage/__tests__/__snapshots__/BackgroundImage.test.tsx.snap
CHANGED
|
@@ -4,44 +4,14 @@ exports[`BackgroundImage 1`] = `
|
|
|
4
4
|
<DocumentFragment>
|
|
5
5
|
<div
|
|
6
6
|
class="pf-c-background-image"
|
|
7
|
-
|
|
7
|
+
src="[object Object]"
|
|
8
8
|
>
|
|
9
9
|
<svg
|
|
10
10
|
class="pf-c-background-image__filter"
|
|
11
11
|
height="0"
|
|
12
12
|
width="0"
|
|
13
13
|
xmlns="http://www.w3.org/2000/svg"
|
|
14
|
-
|
|
15
|
-
<filter
|
|
16
|
-
id="patternfly-background-image-filter-overlay0"
|
|
17
|
-
>
|
|
18
|
-
<fecolormatrix
|
|
19
|
-
type="matrix"
|
|
20
|
-
values="1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 1 0"
|
|
21
|
-
/>
|
|
22
|
-
<fecomponenttransfer
|
|
23
|
-
color-interpolation-filters="sRGB"
|
|
24
|
-
result="duotone"
|
|
25
|
-
>
|
|
26
|
-
<fefuncr
|
|
27
|
-
tableValues="0.086274509803922 0.43921568627451"
|
|
28
|
-
type="table"
|
|
29
|
-
/>
|
|
30
|
-
<fefuncg
|
|
31
|
-
tableValues="0.086274509803922 0.43921568627451"
|
|
32
|
-
type="table"
|
|
33
|
-
/>
|
|
34
|
-
<fefuncb
|
|
35
|
-
tableValues="0.086274509803922 0.43921568627451"
|
|
36
|
-
type="table"
|
|
37
|
-
/>
|
|
38
|
-
<fefunca
|
|
39
|
-
tableValues="0 1"
|
|
40
|
-
type="table"
|
|
41
|
-
/>
|
|
42
|
-
</fecomponenttransfer>
|
|
43
|
-
</filter>
|
|
44
|
-
</svg>
|
|
14
|
+
/>
|
|
45
15
|
</div>
|
|
46
16
|
</DocumentFragment>
|
|
47
17
|
`;
|
|
@@ -50,44 +20,14 @@ exports[`allows passing in a single string as the image src 1`] = `
|
|
|
50
20
|
<DocumentFragment>
|
|
51
21
|
<div
|
|
52
22
|
class="pf-c-background-image"
|
|
53
|
-
|
|
23
|
+
src="/assets/images/pfbg_1200.jpg"
|
|
54
24
|
>
|
|
55
25
|
<svg
|
|
56
26
|
class="pf-c-background-image__filter"
|
|
57
27
|
height="0"
|
|
58
28
|
width="0"
|
|
59
29
|
xmlns="http://www.w3.org/2000/svg"
|
|
60
|
-
|
|
61
|
-
<filter
|
|
62
|
-
id="patternfly-background-image-filter-overlay1"
|
|
63
|
-
>
|
|
64
|
-
<fecolormatrix
|
|
65
|
-
type="matrix"
|
|
66
|
-
values="1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 1 0"
|
|
67
|
-
/>
|
|
68
|
-
<fecomponenttransfer
|
|
69
|
-
color-interpolation-filters="sRGB"
|
|
70
|
-
result="duotone"
|
|
71
|
-
>
|
|
72
|
-
<fefuncr
|
|
73
|
-
tableValues="0.086274509803922 0.43921568627451"
|
|
74
|
-
type="table"
|
|
75
|
-
/>
|
|
76
|
-
<fefuncg
|
|
77
|
-
tableValues="0.086274509803922 0.43921568627451"
|
|
78
|
-
type="table"
|
|
79
|
-
/>
|
|
80
|
-
<fefuncb
|
|
81
|
-
tableValues="0.086274509803922 0.43921568627451"
|
|
82
|
-
type="table"
|
|
83
|
-
/>
|
|
84
|
-
<fefunca
|
|
85
|
-
tableValues="0 1"
|
|
86
|
-
type="table"
|
|
87
|
-
/>
|
|
88
|
-
</fecomponenttransfer>
|
|
89
|
-
</filter>
|
|
90
|
-
</svg>
|
|
30
|
+
/>
|
|
91
31
|
</div>
|
|
92
32
|
</DocumentFragment>
|
|
93
33
|
`;
|
|
@@ -17,7 +17,7 @@ export interface IconComponentProps extends Omit<React.HTMLProps<HTMLSpanElement
|
|
|
17
17
|
/** Size of progress icon. Overrides the icon size set by the size property. */
|
|
18
18
|
progressIconSize?: 'sm' | 'md' | 'lg' | 'xl';
|
|
19
19
|
/** Status color of the icon */
|
|
20
|
-
status?: '
|
|
20
|
+
status?: 'custom' | 'info' | 'success' | 'warning' | 'danger';
|
|
21
21
|
/** Indicates the icon is inline and should inherit the text font size and color. Overriden by size and iconSize properties. */
|
|
22
22
|
isInline?: boolean;
|
|
23
23
|
/** Indicates the icon is in progress. Setting this property to true will swap the icon with the progressIcon. */
|
|
@@ -109,10 +109,10 @@ test('check icon without size', () => {
|
|
|
109
109
|
expect(Array.from(iconContainer?.classList || []).some(c => /pf-m-*/.test(c))); // Check no modifier classes have been added
|
|
110
110
|
});
|
|
111
111
|
|
|
112
|
-
Object.values(['
|
|
112
|
+
Object.values(['custom', 'info', 'success', 'warning', 'danger']).forEach(status => {
|
|
113
113
|
test(`sets status modifier successfully - ${status}`, () => {
|
|
114
114
|
render(
|
|
115
|
-
<Icon status={status as '
|
|
115
|
+
<Icon status={status as 'custom' | 'info' | 'success' | 'warning' | 'danger'} title={`${status}-icon`}>
|
|
116
116
|
<CheckIcon />
|
|
117
117
|
</Icon>
|
|
118
118
|
);
|
|
@@ -5,44 +5,14 @@ exports[`check loginpage example against snapshot 1`] = `
|
|
|
5
5
|
<div
|
|
6
6
|
alt="Pf-background"
|
|
7
7
|
class="pf-c-background-image"
|
|
8
|
-
|
|
8
|
+
src="Background src"
|
|
9
9
|
>
|
|
10
10
|
<svg
|
|
11
11
|
class="pf-c-background-image__filter"
|
|
12
12
|
height="0"
|
|
13
13
|
width="0"
|
|
14
14
|
xmlns="http://www.w3.org/2000/svg"
|
|
15
|
-
|
|
16
|
-
<filter
|
|
17
|
-
id="patternfly-background-image-filter-overlay0"
|
|
18
|
-
>
|
|
19
|
-
<fecolormatrix
|
|
20
|
-
type="matrix"
|
|
21
|
-
values="1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 1 0"
|
|
22
|
-
/>
|
|
23
|
-
<fecomponenttransfer
|
|
24
|
-
color-interpolation-filters="sRGB"
|
|
25
|
-
result="duotone"
|
|
26
|
-
>
|
|
27
|
-
<fefuncr
|
|
28
|
-
tableValues="0.086274509803922 0.43921568627451"
|
|
29
|
-
type="table"
|
|
30
|
-
/>
|
|
31
|
-
<fefuncg
|
|
32
|
-
tableValues="0.086274509803922 0.43921568627451"
|
|
33
|
-
type="table"
|
|
34
|
-
/>
|
|
35
|
-
<fefuncb
|
|
36
|
-
tableValues="0.086274509803922 0.43921568627451"
|
|
37
|
-
type="table"
|
|
38
|
-
/>
|
|
39
|
-
<fefunca
|
|
40
|
-
tableValues="0 1"
|
|
41
|
-
type="table"
|
|
42
|
-
/>
|
|
43
|
-
</fecomponenttransfer>
|
|
44
|
-
</filter>
|
|
45
|
-
</svg>
|
|
15
|
+
/>
|
|
46
16
|
</div>
|
|
47
17
|
<div
|
|
48
18
|
class="pf-c-login"
|
|
@@ -177,7 +177,7 @@ export const ModalContent: React.FunctionComponent<ModalContentProps> = ({
|
|
|
177
177
|
className={css(
|
|
178
178
|
className,
|
|
179
179
|
isVariantIcon(titleIconVariant) &&
|
|
180
|
-
modalStyles.modifiers[titleIconVariant as 'success' | 'warning' | 'info' | 'danger' | '
|
|
180
|
+
modalStyles.modifiers[titleIconVariant as 'success' | 'warning' | 'info' | 'danger' | 'custom']
|
|
181
181
|
)}
|
|
182
182
|
variant={variant}
|
|
183
183
|
position={position}
|
|
@@ -16,7 +16,7 @@ export interface NotificationDrawerListItemProps extends React.HTMLProps<HTMLLIE
|
|
|
16
16
|
/** Tab index for the list item */
|
|
17
17
|
tabIndex?: number;
|
|
18
18
|
/** Variant indicates the severity level */
|
|
19
|
-
variant?: '
|
|
19
|
+
variant?: 'custom' | 'success' | 'danger' | 'warning' | 'info';
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
export const NotificationDrawerListItem: React.FunctionComponent<NotificationDrawerListItemProps> = ({
|
|
@@ -27,7 +27,7 @@ export const NotificationDrawerListItem: React.FunctionComponent<NotificationDra
|
|
|
27
27
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
28
28
|
onClick = (event: React.MouseEvent) => undefined as any,
|
|
29
29
|
tabIndex = 0,
|
|
30
|
-
variant = '
|
|
30
|
+
variant = 'custom',
|
|
31
31
|
...props
|
|
32
32
|
}: NotificationDrawerListItemProps) => {
|
|
33
33
|
const onKeyDown = (event: React.KeyboardEvent) => {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
exports[`NotificationDrawerListItem renders with PatternFly Core styles 1`] = `
|
|
4
4
|
<DocumentFragment>
|
|
5
5
|
<li
|
|
6
|
-
class="pf-c-notification-drawer__list-item pf-m-hoverable pf-m-
|
|
6
|
+
class="pf-c-notification-drawer__list-item pf-m-hoverable pf-m-custom"
|
|
7
7
|
tabindex="0"
|
|
8
8
|
/>
|
|
9
9
|
</DocumentFragment>
|
|
@@ -210,7 +210,7 @@ export interface PopoverProps {
|
|
|
210
210
|
}
|
|
211
211
|
|
|
212
212
|
const alertStyle = {
|
|
213
|
-
default: styles.modifiers.
|
|
213
|
+
default: styles.modifiers.custom,
|
|
214
214
|
info: styles.modifiers.info,
|
|
215
215
|
success: styles.modifiers.success,
|
|
216
216
|
warning: styles.modifiers.warning,
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|