This repository has been archived by the owner on May 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 167
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[terra-content-container] Adding backgroundColor prop in content-cont…
…ainer (#3817) * Adding bordercolor prop in contnet-container * Fix for WDIO Test. * Adding changelog * Updating changes * Missed changes * Missed changes 2 * Review changes * Review changes 2 * Review comments * Padding issues * New approach * Code cleanup * Removing wdio test * Cleanup * doc change * Update clinical-lowlight-theme wdio snapshot * Update wdio for default * Update orion-fusion-theme wdio snapshot * Revert "Update orion-fusion-theme wdio snapshot" This reverts commit a89112c. * Wdio snapshot for orion-fusion * WDIO snapshot update for fusion-theme * Review updates * Lint fix --------- Co-authored-by: st06365 <[email protected]> Co-authored-by: swetasingh9714 <[email protected]>
- Loading branch information
1 parent
5fd4cc4
commit b485ac3
Showing
29 changed files
with
187 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
packages/terra-content-container/src/clinical-lowlight-theme/ContentContainer.module.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
:local { | ||
.clinical-lowlight-theme { | ||
--terra-content-container-light-focus-outline: #c8cacb; | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
packages/terra-content-container/src/orion-fusion-theme/ContentContainer.module.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
:local { | ||
.orion-fusion-theme { | ||
--terra-content-container-light-focus-outline: #000; | ||
--terra-content-container-dark-focus-outline: #c8cacb; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+48 Bytes
(100%)
...linical-lowlight-theme/en/chrome_medium/content-container-spec/after_scroll.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+39.4 KB
...wlight-theme/en/chrome_medium/content-container-spec/dark_content_container.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+30 Bytes
(100%)
...nce/orion-fusion-theme/en/chrome_medium/content-container-spec/after_scroll.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+53 Bytes
(100%)
...ce/orion-fusion-theme/en/chrome_medium/content-container-spec/before_scroll.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+35.1 KB
...fusion-theme/en/chrome_medium/content-container-spec/dark_content_container.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-111 Bytes
(100%)
...ce/terra-default-theme/en/chrome_medium/content-container-spec/after_scroll.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+38.2 KB
...efault-theme/en/chrome_medium/content-container-spec/dark_content_container.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
...dev-site/doc/content-container/example/ContentContainerWithoutInteractiveElementsDark.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import React from 'react'; | ||
import ContentContainer from 'terra-content-container'; | ||
import classNames from 'classnames/bind'; | ||
import ThemeContext from 'terra-theme-context'; | ||
import styles from './ContentContainerDocCommon.module.scss'; | ||
|
||
const cx = classNames.bind(styles); | ||
|
||
const display1 = ( | ||
<p className={cx('white-text')} key="1"> | ||
Entering patient details is a crucial process in healthcare facilities that involves capturing and documenting relevant information about | ||
individuals seeking medical care. Patient details need to be regularly updated to ensure accuracy and relevancy. This may involve periodic | ||
verification of personal information, updating medical history, and making necessary changes to insurance or contact details. Hospitals may | ||
request patients to review and confirm their information during subsequent visits or at designated intervals. Accurate and comprehensive patient | ||
details play a vital role in providing effective healthcare. They serve as a foundation for medical assessments, treatment planning, and continuity | ||
of care, enabling healthcare providers to deliver personalised and efficient services to patients.Begin filling out the form by entering your personal | ||
information. This usually includes your full name, contact details (such as phone number and email address), and residential address. It is crucial to | ||
provide accurate contact information as it will be used for communication and verification purposes. | ||
</p> | ||
); | ||
|
||
const contentHeader = <h3 className={cx('white-text')}>Registration Form</h3>; | ||
const contentFooter = <p className={cx('white-text')}>Please enter the name as per the official document</p>; | ||
|
||
const Container = () => { | ||
const theme = React.useContext(ThemeContext); | ||
return ( | ||
<div className={cx(theme.className === 'clinical-lowlight-theme' ? 'content-container-darker' : 'content-container-dark')}> | ||
<ContentContainer header={contentHeader} footer={contentFooter} fill setFocusOnContainer backgroundColor="dark"> | ||
<div key="1">{display1}</div> | ||
</ContentContainer> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Container; |
36 changes: 36 additions & 0 deletions
36
...s/terra-core-docs/src/terra-dev-site/test/content-container/ContentContainerDark.test.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import React from 'react'; | ||
import ContentContainer from 'terra-content-container'; | ||
import classNames from 'classnames/bind'; | ||
import ThemeContext from 'terra-theme-context'; | ||
import styles from './ContentContainerTestCommon.module.scss'; | ||
|
||
const cx = classNames.bind(styles); | ||
|
||
const display1 = ( | ||
<p className={cx('white-text')} key="1"> | ||
Entering patient details is a crucial process in healthcare facilities that involves capturing and documenting relevant information about | ||
individuals seeking medical care. Patient details need to be regularly updated to ensure accuracy and relevancy. This may involve periodic | ||
verification of personal information, updating medical history, and making necessary changes to insurance or contact details. Hospitals may | ||
request patients to review and confirm their information during subsequent visits or at designated intervals. Accurate and comprehensive patient | ||
details play a vital role in providing effective healthcare. They serve as a foundation for medical assessments, treatment planning, and continuity | ||
of care, enabling healthcare providers to deliver personalised and efficient services to patients.Begin filling out the form by entering your personal | ||
information. This usually includes your full name, contact details (such as phone number and email address), and residential address. It is crucial to | ||
provide accurate contact information as it will be used for communication and verification purposes. | ||
</p> | ||
); | ||
|
||
const contentHeader = <h3 className={cx('white-text')}>Registration Form</h3>; | ||
const contentFooter = <p className={cx('white-text')}>Please enter the name as per the official document</p>; | ||
|
||
const Container = () => { | ||
const theme = React.useContext(ThemeContext); | ||
return ( | ||
<div className={cx(theme.className === 'clinical-lowlight-theme' ? 'content-container-darker' : 'content-container-dark')}> | ||
<ContentContainer header={contentHeader} footer={contentFooter} fill setFocusOnContainer backgroundColor="dark"> | ||
<div key="1">{display1}</div> | ||
</ContentContainer> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Container; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.