diff --git a/pages/table/embedded-in-alert.page.tsx b/pages/table/embedded-in-alert.page.tsx deleted file mode 100644 index 50be5569c2..0000000000 --- a/pages/table/embedded-in-alert.page.tsx +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. -// SPDX-License-Identifier: Apache-2.0 -import React, { useState } from 'react'; - -import Alert from '~components/alert'; -import Box from '~components/box'; -import Header from '~components/header'; -import SpaceBetween from '~components/space-between'; -import Table, { TableProps } from '~components/table'; - -import ScreenshotArea from '../utils/screenshot-area'; -import { generateItems } from './generate-data'; -import { columnsConfig } from './shared-configs'; - -const tableItems = generateItems(6); - -export default () => { - return ( - -

Table embedded in alert

- - - - Some description - - - - - - Some description - - - - - - -
- ); -}; - -const ExampleTable = ({ variant }: { variant: TableProps.Variant }) => { - const [selectedItems, setSelectedItems] = useState([tableItems[tableItems.length - 1]]); - - return ( - setSelectedItems(detail.selectedItems)} - selectedItems={selectedItems} - columnDefinitions={columnsConfig} - items={tableItems} - selectionType="multi" - header={
Table with variant {variant}
} - ariaLabels={{ - selectionGroupLabel: 'Items selection', - allItemsSelectionLabel: () => 'select all', - itemSelectionLabel: (selection, item) => item.id, - }} - /> - ); -}; diff --git a/src/container/styles.scss b/src/container/styles.scss index e8d7e68578..e052def6ca 100644 --- a/src/container/styles.scss +++ b/src/container/styles.scss @@ -127,11 +127,6 @@ background-color: awsui.$color-background-layout-main; } - // "embedded" variant is passed to container only from table variants "borderless" and "embedded" - &.header-variant-embedded { - background-color: transparent; - } - &.header-with-media { background: none; &:not(:empty) { diff --git a/src/table/header-cell/styles.scss b/src/table/header-cell/styles.scss index 7b760e8972..4cd0b59b48 100644 --- a/src/table/header-cell/styles.scss +++ b/src/table/header-cell/styles.scss @@ -75,9 +75,6 @@ $cell-horizontal-padding: awsui.$space-scaled-l; &-variant-full-page.header-cell-hidden { border-block-end-color: transparent; } - &-variant-borderless { - background: none; - } &:last-child, &.header-cell-sortable { padding-inline-end: awsui.$space-xs;