Skip to content

Commit

Permalink
Merge pull request #148 from rebeccaalpert/header
Browse files Browse the repository at this point in the history
fix(ChatbotHeader): Adjust spacing
  • Loading branch information
nicolethoen authored Sep 19, 2024
2 parents 8198a92 + 53e95dc commit a5c698f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
16 changes: 10 additions & 6 deletions packages/module/src/ChatbotHeader/ChatbotHeader.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
position: relative;
background-color: var(--pf-t--chatbot--background);
justify-content: space-between;
padding: var(--pf-t--global--spacer--xs) var(--pf-t--global--spacer--sm) var(--pf-t--global--spacer--xs)
var(--pf-t--global--spacer--sm);

// Title -or- Brand
.pf-chatbot__title {
Expand All @@ -32,8 +34,8 @@
// ============================================================================
.pf-chatbot--fullscreen {
.pf-chatbot__header {
padding-top: var(--pf-t--global--spacer--sm);
padding-bottom: var(--pf-t--global--spacer--sm);
padding: var(--pf-t--global--spacer--lg) var(--pf-t--global--spacer--4xl) var(--pf-t--global--spacer--lg)
var(--pf-t--global--spacer--4xl);
background-color: var(--pf-t--global--background--color--primary--default);
}
.pf-chatbot__header__divider {
Expand All @@ -46,8 +48,8 @@
// ============================================================================
.pf-chatbot--docked {
.pf-chatbot__header {
padding-top: var(--pf-t--global--spacer--sm);
padding-bottom: var(--pf-t--global--spacer--sm);
padding: var(--pf-t--global--spacer--md) var(--pf-t--global--spacer--lg) var(--pf-t--global--spacer--md)
var(--pf-t--global--spacer--lg);
background-color: var(--pf-t--chatbot--background);
}
.pf-chatbot__header__divider {
Expand All @@ -65,14 +67,16 @@
border-radius: var(--pf-t--global--border--radius--pill);
padding: var(--pf-t--global--spacer--md);

.pf-v6-c-button__icon {
.pf-v6-c-button__icon,
.pf-v6-c-icon__content {
color: var(--pf-t--chatbot--icon--fill);
}

// Interactive states
&:hover,
&:focus {
.pf-v6-c-button__icon {
.pf-v6-c-button__icon,
.pf-v6-c-icon__content {
color: var(--pf-t--chatbot--icon--fill--hover);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const ChatbotHeaderOptionsDropdown: React.FunctionComponent<ChatbotHeader
aria-label="Chatbot options"
ref={toggleRef}
icon={
<Icon iconSize="xl" isInline>
<Icon iconSize="lg" isInline>
<EllipsisIcon />
</Icon>
}
Expand Down

0 comments on commit a5c698f

Please sign in to comment.