Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 23 additions & 1 deletion packages/module/src/Chatbot/Chatbot.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@
opacity: 1;
transform: translateY(0);
}
// for high contrast support
border: var(--pf-t--global--border--width--high-contrast--regular) solid
var(--pf-t--global--border--color--high-contrast);

// 32 rem is the width of the overlay chatbot plus the insets
// if the screen is smaller, we want to be 100%
Expand All @@ -46,6 +49,10 @@
// Chatbot Display Mode - Docked
// ============================================================================
.pf-chatbot--docked {
// for high contrast support
border: unset;
border-left: var(--pf-t--global--border--width--high-contrast--regular) solid
var(--pf-t--global--border--color--high-contrast);
inset-block-end: 0;
inset-inline-end: 0;
padding: 0;
Expand All @@ -65,6 +72,8 @@
// Chatbot Display Mode - Fullscreen
// ============================================================================
.pf-chatbot--fullscreen {
// for high contrast support
border: unset;
inset-block-end: 0;
inset-inline-end: 0;
padding: 0;
Expand All @@ -78,6 +87,8 @@
// Chatbot Display Mode - Embedded
// ============================================================================
.pf-chatbot--embedded {
// for high contrast support
border: unset;
position: static;
width: 100%;
min-height: 100%;
Expand Down Expand Up @@ -125,12 +136,23 @@
height: 100%;
border-radius: 0;
box-shadow: none;
border-left: var(--pf-t--global--border--width--divider--default) solid;
border-color: var(--pf-t--global--border--color--default);

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

@media screen and (min-width: 768px) {
// only want if drawer open - drawer closes/stops being inline on mobile
border-left: var(--pf-t--global--border--width--divider--default) solid;
}
}

// for high contrast support
:root:where(.pf-v6-theme-high-contrast) {
.pf-chatbot--drawer {
border: unset;
}
}

// ============================================================================
Expand Down
17 changes: 17 additions & 0 deletions packages/module/src/ChatbotFooter/ChatbotFooter.scss
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,20 @@
padding: 0 var(--pf-t--global--spacer--sm) var(--pf-t--global--spacer--sm) var(--pf-t--global--spacer--sm);
row-gap: var(--pf-t--global--spacer--sm);
}

// ============================================================================
// High contrast
// ============================================================================
:root:where(.pf-v6-theme-high-contrast) {
// Chatbot Display Mode - Fullscreen and Embedded
@media screen and (min-width: 64rem) {
.pf-chatbot--embedded,
.pf-chatbot--fullscreen {
.pf-chatbot__footer {
.pf-v6-c-divider {
display: var(--pf-v6-hidden-visible--Display);
}
}
}
}
}
15 changes: 15 additions & 0 deletions packages/module/src/ChatbotHeader/ChatbotHeader.scss
Original file line number Diff line number Diff line change
Expand Up @@ -162,3 +162,18 @@
.pf-chatbot__header .pf-chatbot__actions .pf-v6-c-menu-toggle.pf-m-secondary.pf-m-compact {
width: initial;
}

// ============================================================================
// High contrast
// ============================================================================
:root:where(.pf-v6-theme-high-contrast) {
// Chatbot Display Mode - Fullscreen and Embedded
@media screen and (min-width: 64rem) {
.pf-chatbot--fullscreen,
.pf-chatbot--embedded {
.pf-chatbot__header__divider {
display: var(--pf-v6-hidden-visible--Display);
}
}
}
}
Loading