From 1468e510085e661ab05a12b89b4d2b85b5ba2994 Mon Sep 17 00:00:00 2001 From: Cee Chen Date: Sat, 23 Nov 2024 09:41:31 -0800 Subject: [PATCH] Fix card examples feeling squashed with smaller docs width --- .../website/docs/components/display/card.mdx | 99 +++++++++---------- 1 file changed, 48 insertions(+), 51 deletions(-) diff --git a/packages/website/docs/components/display/card.mdx b/packages/website/docs/components/display/card.mdx index 43e3e4a51eb..1e6dd048b49 100644 --- a/packages/website/docs/components/display/card.mdx +++ b/packages/website/docs/components/display/card.mdx @@ -17,7 +17,7 @@ For accessibility and heading hierarchy, a card's title element is a `span` by d import React from 'react'; import { EuiCard, EuiIcon, EuiFlexGroup, EuiFlexItem } from '@elastic/eui'; -const icons = ['Beats', 'Cloud', 'Logging', 'Kibana']; +const icons = ['Beats', 'Cloud', 'Kibana']; const cardNodes = icons.map(function (item, index) { return ( @@ -626,62 +626,59 @@ For non-interactive cards, reduce or eliminate the padding as needed to suit you import React from 'react'; import { EuiCard, - EuiFlexGroup, + EuiFlexGrid, EuiFlexItem, EuiIcon, EuiSpacer, } from '@elastic/eui'; export default () => ( -
- - - - } - onClick={() => {}} - title="Plain" - display="plain" - description="This one still has a solid background color." - /> - - - } - title="Subdued" - display="subdued" - description="This one has a subdued background color." - onClick={() => {}} - /> - - - } - title="Transparent" - display="transparent" - description="This one doesn't have a background color anymore." - betaBadgeProps={{ - label: 'Beta', - tooltipContent: - 'This module is not GA. Please help us by reporting any bugs.', - }} - onClick={() => {}} - /> - - - } - title="Bordered" - display="plain" - hasBorder - description="This one has a plain background color and border." - onClick={() => {}} - /> - - -
+ + + } + onClick={() => {}} + title="Plain" + display="plain" + description="This one still has a solid background color." + /> + + + } + title="Subdued" + display="subdued" + description="This one has a subdued background color." + onClick={() => {}} + /> + + + } + title="Transparent" + display="transparent" + description="This one doesn't have a background color anymore." + betaBadgeProps={{ + label: 'Beta', + tooltipContent: + 'This module is not GA. Please help us by reporting any bugs.', + }} + onClick={() => {}} + /> + + + } + title="Bordered" + display="plain" + hasBorder + description="This one has a plain background color and border." + onClick={() => {}} + /> + + ); ```