@patternfly/documentation-framework 6.0.0-alpha.49 → 6.0.0-alpha.50

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 CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # 6.0.0-alpha.50 (2024-06-20)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * clean up gdpr banner styles ([#4082](https://github.com/patternfly/patternfly-org/issues/4082)) ([1ed25c5](https://github.com/patternfly/patternfly-org/commit/1ed25c500fa83434d2df266464acae3e84e34bf3))
12
+
13
+
14
+
15
+
16
+
6
17
  # 6.0.0-alpha.49 (2024-06-20)
7
18
 
8
19
 
@@ -8,7 +8,4 @@
8
8
 
9
9
  #ws-gdpr-banner {
10
10
  max-width: 95vw;
11
- flex-wrap: nowrap;
12
- /* background: var(--pf-v6-global--BackgroundColor--100); */
13
- /* border: var(--pf-v6-global--BorderWidth--sm) solid var(--pf-v6-global--Color--100); */
14
11
  }
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { Button } from '@patternfly/react-core';
2
+ import { Panel, PanelMain, PanelMainBody, Flex, FlexItem, Button } from '@patternfly/react-core';
3
3
  import TimesIcon from '@patternfly/react-icons/dist/esm/icons/times-icon';
4
4
  import './gdprBanner.css';
5
5
 
@@ -12,20 +12,27 @@ export const GdprBanner = () => {
12
12
  setBannerOpen(false);
13
13
  }
14
14
 
15
- return !isBannerOpen ? null : (
16
- <section aria-label="Cookies on PatternFly" className="ws-gdpr-banner-container pf-v6-l-flex">
17
- <div id="ws-gdpr-banner" className="pf-v6-l-flex pf-v6-u-py-md pf-m-align-items-center">
18
- <p id="ws-gdpr-banner-text" className="pf-v6-u-ml-xl">
19
- We use cookies on our websites to deliver our online services.
20
- Details about how we use cookies and how you may disable them are set out in our <a href="//www.redhat.com/en/about/privacy-policy">Privacy Statement</a>.
21
- By using this website you agree to our use of cookies.
22
- </p>
23
- <div className="pf-m-align-self-flex-start">
24
- <Button variant="plain" aria-label="Close banner" onClick={closeBanner}>
25
- <TimesIcon />
26
- </Button>
27
- </div>
28
- </div>
29
- </section>
15
+ // return !isBannerOpen ? null : (
16
+ return (
17
+ <Flex className="ws-gdpr-banner-container">
18
+ <Panel variant="bordered" className="pf-m-raised" id="ws-gdpr-banner">
19
+ <PanelMain>
20
+ <PanelMainBody>
21
+ <Flex flexWrap={{default: 'nowrap'}} alignItems={{default: 'alignItemsFlexStart'}}>
22
+ <FlexItem className="pf-v6-u-ml-xl">
23
+ We use cookies on our websites to deliver our online services.
24
+ Details about how we use cookies and how you may disable them are set out in our <a href="//www.redhat.com/en/about/privacy-policy">Privacy Statement</a>.
25
+ By using this website you agree to our use of cookies.
26
+ </FlexItem>
27
+ <FlexItem>
28
+ <Button variant="plain" aria-label="Close banner" onClick={closeBanner}>
29
+ <TimesIcon />
30
+ </Button>
31
+ </FlexItem>
32
+ </Flex>
33
+ </PanelMainBody>
34
+ </PanelMain>
35
+ </Panel>
36
+ </Flex>
30
37
  );
31
38
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@patternfly/documentation-framework",
3
3
  "description": "A framework to build documentation for PatternFly.",
4
- "version": "6.0.0-alpha.49",
4
+ "version": "6.0.0-alpha.50",
5
5
  "author": "Red Hat",
6
6
  "license": "MIT",
7
7
  "private": false,
@@ -13,7 +13,7 @@
13
13
  "@babel/preset-env": "^7.24.3",
14
14
  "@babel/preset-react": "^7.24.1",
15
15
  "@mdx-js/util": "1.6.16",
16
- "@patternfly/ast-helpers": "^1.4.0-alpha.38",
16
+ "@patternfly/ast-helpers": "^1.4.0-alpha.39",
17
17
  "@reach/router": "npm:@gatsbyjs/reach-router@1.3.9",
18
18
  "autoprefixer": "9.8.6",
19
19
  "babel-loader": "^9.1.3",
@@ -80,5 +80,5 @@
80
80
  "react": "^17.0.0 || ^18.0.0",
81
81
  "react-dom": "^17.0.0 || ^18.0.0"
82
82
  },
83
- "gitHead": "11e7cf09028ab556765ba853f4db8fad15738122"
83
+ "gitHead": "f5e51846b5d04ac7d9cde0ae2e6d029ded280e14"
84
84
  }