Skip to content

Commit

Permalink
[EuiCard] Fix bug where layout breaks when horizontal and `selectab…
Browse files Browse the repository at this point in the history
…le` (#6348)

* [EuiCard] Fix bug where layout breaks when `horizontal` and `selectable`

* New layout structure

* REVERT ME

* Adding CL

* Reverting example and changing demos to open in CodeSandbox as `*.tsx`
  • Loading branch information
miukimiu authored Nov 8, 2022
1 parent a4493d9 commit d25437c
Show file tree
Hide file tree
Showing 6 changed files with 822 additions and 665 deletions.
18 changes: 9 additions & 9 deletions src-docs/src/views/card/card_example.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export const CardExample = {
title: 'Layout',
source: [
{
type: GuideSectionTypes.JS,
type: GuideSectionTypes.TSX,
code: cardLayoutSource,
},
],
Expand Down Expand Up @@ -148,7 +148,7 @@ export const CardExample = {
title: 'Images',
source: [
{
type: GuideSectionTypes.JS,
type: GuideSectionTypes.TSX,
code: cardImageSource,
},
],
Expand Down Expand Up @@ -194,7 +194,7 @@ export const CardExample = {
title: 'Footer',
source: [
{
type: GuideSectionTypes.JS,
type: GuideSectionTypes.TSX,
code: cardFooterSource,
},
],
Expand Down Expand Up @@ -235,7 +235,7 @@ export const CardExample = {
title: 'Beta badge',
source: [
{
type: GuideSectionTypes.JS,
type: GuideSectionTypes.TSX,
code: cardBetaSource,
},
],
Expand Down Expand Up @@ -269,7 +269,7 @@ export const CardExample = {
title: 'Selectable',
source: [
{
type: GuideSectionTypes.JS,
type: GuideSectionTypes.TSX,
code: cardSelectableSource,
},
],
Expand Down Expand Up @@ -319,7 +319,7 @@ export const CardExample = {
),
source: [
{
type: GuideSectionTypes.JS,
type: GuideSectionTypes.TSX,
code: cardCheckableCheckboxSource,
},
],
Expand All @@ -345,7 +345,7 @@ export const CardExample = {
),
source: [
{
type: GuideSectionTypes.JS,
type: GuideSectionTypes.TSX,
code: cardCheckableSource,
},
],
Expand All @@ -358,7 +358,7 @@ export const CardExample = {
title: 'Custom children',
source: [
{
type: GuideSectionTypes.JS,
type: GuideSectionTypes.TSX,
code: cardChildrenSource,
},
],
Expand Down Expand Up @@ -395,7 +395,7 @@ export const CardExample = {
title: 'Plain and other colors',
source: [
{
type: GuideSectionTypes.JS,
type: GuideSectionTypes.TSX,
code: cardDisplaySource,
},
],
Expand Down
Loading

0 comments on commit d25437c

Please sign in to comment.