Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(docs): update beta button style #3961

Merged
merged 3 commits into from
May 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const AutoLinkHeader = ({
const slug = id || slugger(children);

return (
<Flex alignItems={{ default: 'alignItemsCenter'}} spaceItems={{ default: 'spaceItemsNone' }}>
<Flex alignItems={{ default: 'alignItemsCenter'}} spaceItems={{ default: "spaceItemsSm" }}>
<FlexItem>
<Title
id={slug}
Expand All @@ -40,7 +40,7 @@ export const AutoLinkHeader = ({
{children}
</Title>
</FlexItem>
<FlexItem> {metaText}</FlexItem>
<FlexItem>{metaText}</FlexItem>
</Flex>
)
};
Original file line number Diff line number Diff line change
Expand Up @@ -203,21 +203,21 @@ export const Example = ({
<React.Fragment>
{isBeta && (
<Tooltip content="This beta component is currently under review and is still open for further evolution.">
<Button variant="plain">
<Button variant="plain" hasNoPadding>
<Label isCompact color="blue">Beta</Label>
</Button>
</Tooltip>
)}
{isDemo && (
<Tooltip content="Demos show how multiple components can be used in a single design.">
<Button variant="plain">
<Button variant="plain" hasNoPadding>
<Label isCompact color="purple">Demo</Label>
</Button>
</Tooltip>
)}
{isDeprecated && (
<Tooltip content="Deprecated components are available for use but are no longer being maintained or enhanced.">
<Button variant="plain">
<Button variant="plain" hasNoPadding>
<Label isCompact color="grey">Deprecated</Label>
</Button>
</Tooltip>
Expand Down
6 changes: 3 additions & 3 deletions packages/documentation-framework/templates/mdx.js
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ export const MDXTemplate = ({
{isDeprecated && (
<FlexItem spacer={{ default: 'spacerSm' }}>
<Tooltip content="Deprecated components are available for use but are no longer being maintained or enhanced.">
<Button isInline component="span" variant="link">
<Button variant="plain" hasNoPadding>
<Label color="grey">Deprecated</Label>
</Button>
</Tooltip>
Expand All @@ -279,7 +279,7 @@ export const MDXTemplate = ({
{isDemo && (
<FlexItem spacer={{ default: 'spacerSm' }}>
<Tooltip content="Demos show how multiple components can be used in a single design.">
<Button isInline component="span" variant="link">
<Button variant="plain" hasNoPadding>
<Label color="purple">Demo</Label>
</Button>
</Tooltip>
Expand All @@ -288,7 +288,7 @@ export const MDXTemplate = ({
{isBeta && (
<FlexItem spacer={{ default: 'spacerSm' }}>
<Tooltip content="This beta component is currently under review and is still open for further evolution.">
<Button isInline component="span" variant="link">
<Button variant="plain" hasNoPadding>
<Label color="blue">Beta</Label>
</Button>
</Tooltip>
Expand Down
4 changes: 2 additions & 2 deletions packages/documentation-site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"screenshots": "pf-docs-framework screenshots"
},
"dependencies": {
"@patternfly/documentation-framework": "6.0.0-alpha.20",
"@patternfly/documentation-framework": "6.0.0-alpha.22",
"@patternfly/quickstarts": "^5.1.0",
"@patternfly/react-catalog-view-extension": "5.0.0",
"@patternfly/react-console": "5.0.0",
Expand All @@ -27,7 +27,7 @@
"@patternfly/react-user-feedback": "5.0.0",
"@patternfly/react-component-groups": "5.1.0",
"@patternfly/react-virtualized-extension": "5.0.0",
"@patternfly/design-tokens": "1.0.4",
"@patternfly/design-tokens": "1.0.5",
"react": "^17.0.0 || ^18.0.0",
"react-dom": "^17.0.0 || ^18.0.0",
"showdown": "^2.1.0"
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2472,10 +2472,10 @@
node-addon-api "^3.2.1"
node-gyp-build "^4.3.0"

"@patternfly/[email protected].4":
version "1.0.4"
resolved "https://registry.yarnpkg.com/@patternfly/design-tokens/-/design-tokens-1.0.4.tgz#51142a5488bff61eecd044f7f0ca4157ef16b2c8"
integrity sha512-z6ikVWSkWGxOqdE5yTKVi4wOxdduy9wQoJU0Eri7psV532HKxd/XocURalqKgfhv55ReDHHG11+5z0ORUuLB0w==
"@patternfly/[email protected].5":
version "1.0.5"
resolved "https://registry.yarnpkg.com/@patternfly/design-tokens/-/design-tokens-1.0.5.tgz#d944c50c30006efdc9f277707021a32665fb79d7"
integrity sha512-HifDWvUTrGBC0ngPGXqkdoCBA4JsPXlrGb78a0wL+nwEypAoLAulCCoBpnUeYESlI1CmVjlWUxwRpnVFICZc+Q==
dependencies:
"@patternfly/react-core" "^6.0.0-alpha.36"

Expand Down
Loading