From b1483aee08dabca52546f11409e73ee57b4ac1b8 Mon Sep 17 00:00:00 2001 From: Akshar Date: Tue, 27 Jun 2023 10:53:00 +0530 Subject: [PATCH] Review updates --- packages/terra-content-container/src/ContentContainer.jsx | 7 +++---- packages/terra-scroll/CHANGELOG.md | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/packages/terra-content-container/src/ContentContainer.jsx b/packages/terra-content-container/src/ContentContainer.jsx index e35be6a138e..3cfa935762a 100644 --- a/packages/terra-content-container/src/ContentContainer.jsx +++ b/packages/terra-content-container/src/ContentContainer.jsx @@ -35,8 +35,8 @@ const propTypes = { setFocusOnContainer: PropTypes.bool, /** * ![IMPORTANT](https://badgen.net/badge/UX/Accessibility/blue) - * This prop needs to be set only if `setFocusOnContainer` is set. Based on dark or light background color the border will be wite or black to match color contrast ratio - * guidelines. + * This prop needs to be set only if `setFocusOnContainer` is set. Based on dark or light background color the border will be white or black respectively to maintain + * an accessible color contrast ratio. */ backgroundColor: PropTypes.oneOf(['dark', 'light']), }; @@ -73,8 +73,7 @@ const ContentContainer = ({ 'normalizer', theme.className, { 'content-container-focused-padding': setFocusOnContainer }, - { dark: background === 'dark' }, - { light: background === 'light' }, + background ); return ( diff --git a/packages/terra-scroll/CHANGELOG.md b/packages/terra-scroll/CHANGELOG.md index 46ac5592aa0..3e78b4b19bd 100644 --- a/packages/terra-scroll/CHANGELOG.md +++ b/packages/terra-scroll/CHANGELOG.md @@ -5,7 +5,7 @@ * Added * Added styles when the scroll is focussed * Changed - * Removed the focus style changes added for terra-scroll. + * Reverted the focus style changes added in terra-scroll. ## 2.34.0 - (February 15, 2023)