From f7573bddba4b5926fcd92e8d4fe6e2ed4787cd8a Mon Sep 17 00:00:00 2001 From: TJ Egan Date: Sat, 7 Aug 2021 04:05:50 -0400 Subject: [PATCH] fix(DataTable): add position relative to prevent jumping (#9418) Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> --- .../components/src/components/data-table/_data-table-core.scss | 1 + packages/styles/scss/components/data-table/_data-table.scss | 1 + 2 files changed, 2 insertions(+) diff --git a/packages/components/src/components/data-table/_data-table-core.scss b/packages/components/src/components/data-table/_data-table-core.scss index e89089bb2745..4ecb387e4c57 100644 --- a/packages/components/src/components/data-table/_data-table-core.scss +++ b/packages/components/src/components/data-table/_data-table-core.scss @@ -18,6 +18,7 @@ // Container //---------------------------------------------------------------------------- .#{$prefix}--data-table-container { + position: relative; // Allow space for focus styles padding-top: $spacing-01; } diff --git a/packages/styles/scss/components/data-table/_data-table.scss b/packages/styles/scss/components/data-table/_data-table.scss index 51788c49af54..802a3a033888 100644 --- a/packages/styles/scss/components/data-table/_data-table.scss +++ b/packages/styles/scss/components/data-table/_data-table.scss @@ -25,6 +25,7 @@ // Container //---------------------------------------------------------------------------- .#{$prefix}--data-table-container { + position: relative; // Allow space for focus styles padding-top: $spacing-01; }