Skip to content
Draft
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
24 changes: 24 additions & 0 deletions build-tools/utils/custom-css-properties.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,5 +184,29 @@ const customCssPropertiesList = [
'styleItemCardBorderRadius',
'styleItemCardBorderWidthDefault',
'styleItemCardBoxShadowDefault',
// Action card specific style properties
'styleActionCardBackgroundDefault',
'styleActionCardBackgroundHover',
'styleActionCardBackgroundActive',
'styleActionCardBackgroundDisabled',
'styleActionCardBorderColorDefault',
'styleActionCardBorderColorHover',
'styleActionCardBorderColorActive',
'styleActionCardBorderColorDisabled',
'styleActionCardBorderRadiusDefault',
'styleActionCardBorderRadiusHover',
'styleActionCardBorderRadiusActive',
'styleActionCardBorderRadiusDisabled',
'styleActionCardBorderWidthDefault',
'styleActionCardBorderWidthHover',
'styleActionCardBorderWidthActive',
'styleActionCardBorderWidthDisabled',
'styleActionCardBoxShadowDefault',
'styleActionCardBoxShadowHover',
'styleActionCardBoxShadowActive',
'styleActionCardBoxShadowDisabled',
'styleActionCardFocusRingBorderColor',
'styleActionCardFocusRingBorderRadius',
'styleActionCardFocusRingBorderWidth',
];
module.exports = customCssPropertiesList;
1 change: 1 addition & 0 deletions build-tools/utils/pluralize.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
const pluralizationMap = {
ActionCard: 'ActionCards',
Alert: 'Alerts',
AnchorNavigation: 'AnchorNavigations',
Annotation: 'Annotations',
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@
{
"path": "lib/components/internal/widget-exports.js",
"brotli": false,
"limit": "1250 kB",
"limit": "1255 kB",
"ignore": "react-dom"
}
],
Expand Down
27 changes: 27 additions & 0 deletions pages/action-card/common.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
import React from 'react';

import { Box, Icon } from '~components';

export const shortHeader = 'Card header';
export const longHeader =
'A very long header text that should wrap to multiple lines to test the layout behavior of the action card component';

export const shortDescription = 'A description of the action card';
export const longDescription =
'A very long description text that should wrap to multiple lines to test the layout behavior of the action card component when content overflows';

export const shortContent = 'Card content';
export const longContent =
'Very long content that should wrap to multiple lines to test the layout behavior of the action card component when the content area has a lot of text';

export const icon = <Icon name="angle-right" />;

export const reactNodeContent = (
<Box padding="xs">
<span>This is a React Node</span>
</Box>
);

export const onClick = () => {};
Loading
Loading