Skip to content

Commit 28e3055

Browse files
committed
feat(Chatbot): Add support for high contrast
Add borders to container that show in high contrast mode.
1 parent 2f25b87 commit 28e3055

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

packages/module/src/Chatbot/Chatbot.scss

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@
2828
opacity: 1;
2929
transform: translateY(0);
3030
}
31+
// for high contrast support
32+
border: var(--pf-t--global--border--width--high-contrast--regular) solid
33+
var(--pf-t--global--border--color--high-contrast);
3134

3235
// 32 rem is the width of the overlay chatbot plus the insets
3336
// if the screen is smaller, we want to be 100%
@@ -46,6 +49,10 @@
4649
// Chatbot Display Mode - Docked
4750
// ============================================================================
4851
.pf-chatbot--docked {
52+
// for high contrast support
53+
border: unset;
54+
border-left: var(--pf-t--global--border--width--high-contrast--regular) solid
55+
var(--pf-t--global--border--color--high-contrast);
4956
inset-block-end: 0;
5057
inset-inline-end: 0;
5158
padding: 0;
@@ -65,6 +72,8 @@
6572
// Chatbot Display Mode - Fullscreen
6673
// ============================================================================
6774
.pf-chatbot--fullscreen {
75+
// for high contrast support
76+
border: unset;
6877
inset-block-end: 0;
6978
inset-inline-end: 0;
7079
padding: 0;
@@ -78,6 +87,8 @@
7887
// Chatbot Display Mode - Embedded
7988
// ============================================================================
8089
.pf-chatbot--embedded {
90+
// for high contrast support
91+
border: unset;
8192
position: static;
8293
width: 100%;
8394
min-height: 100%;
@@ -127,6 +138,9 @@
127138
box-shadow: none;
128139
border-left: var(--pf-t--global--border--width--divider--default) solid;
129140
border-color: var(--pf-t--global--border--color--default);
141+
// for high contrast support
142+
border-left: var(--pf-t--global--border--width--high-contrast--regular) solid
143+
var(--pf-t--global--border--color--high-contrast);
130144

131145
.pf-chatbot-container {
132146
border-radius: var(--pf-t--global--border--radius--sharp);

0 commit comments

Comments
 (0)