Skip to content

Commit b3eb896

Browse files
committed
nits
1 parent 6cdf49e commit b3eb896

File tree

1 file changed

+25
-29
lines changed

1 file changed

+25
-29
lines changed

packages/fluent-theme/src/components/theme/Theme.module.css

Lines changed: 25 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -643,81 +643,77 @@
643643

644644
:global(.webchat-fluent).theme :global(.webchat__feedback-form__button__submit) {
645645
background-color: var(--webchat-colorBrandForeground1);
646-
border: 1px solid var(--webchat-colorBrandForeground1);
646+
border: var(--webchat-strokeWidthThin) solid var(--webchat-colorBrandForeground1);
647647
border-radius: var(--webchat-borderRadiusMedium);
648648
color: var(--webchat-colorNeutralBackground1);
649649
cursor: pointer;
650650
font-family: var(--webchat-fontFamilyBase);
651651
font-size: var(--webchat-fontSizeBase300);
652-
height: 24px;
653-
padding: 0 var(--webchat-spacingHorizontalS);
652+
padding: var(--webchat-spacingVerticalNone) var(--webchat-spacingHorizontalS);
654653

655654
&:hover {
656655
background-color: var(--webchat-colorBrandForeground2Hover);
657-
border: 1px solid var(--webchat-colorBrandForeground2Hover);
656+
border: var(--webchat-strokeWidthThin) solid var(--webchat-colorBrandForeground2Hover);
657+
}
658+
659+
&:focus-visible {
660+
outline: var(--webchat-strokeWidthThick) solid var(--webchat-colorStrokeFocus2);
661+
outline-offset: calc(var(--webchat-strokeWidthThin) * -1);
658662
}
659663

660664
&:active {
661665
background-color: var(--webchat-colorBrandForeground2Pressed);
662-
border: 1px solid var(--webchat-colorBrandForeground2Pressed);
666+
border: var(--webchat-strokeWidthThin) solid var(--webchat-colorBrandForeground2Pressed);
663667
}
664668
}
665669

666670
:global(.webchat-fluent).theme :global(.webchat__feedback-form__button__cancel) {
667671
background-color: var(--webchat-colorNeutralBackground1);
668-
border: 1px solid var(--webchat-colorNeutralStroke1);
672+
border: var(--webchat-strokeWidthThin) solid var(--webchat-colorNeutralStroke1);
669673
border-radius: var(--webchat-borderRadiusMedium);
670674
color: var(--webchat-colorNeutralForeground3);
671675
cursor: pointer;
672676
font-family: var(--webchat-fontFamilyBase);
673677
font-size: var(--webchat-fontSizeBase300);
674-
height: 24px;
675-
padding: 0 var(--webchat-spacingHorizontalS);
678+
padding: var(--webchat-spacingVerticalNone) var(--webchat-spacingHorizontalS);
676679

677680
&:hover {
678681
background-color: var(--webchat-colorNeutralBackground1Hover);
679-
border: 1px solid var(--webchat-colorNeutralStroke1Hover);
682+
border: var(--webchat-strokeWidthThin) solid var(--webchat-colorNeutralStroke1Hover);
683+
}
684+
685+
&:focus-visible {
686+
outline: var(--webchat-strokeWidthThick) solid var(--webchat-colorStrokeFocus2);
687+
outline-offset: calc(var(--webchat-strokeWidthThin) * -1);
680688
}
681689

682690
&:active {
683691
background-color: var(--webchat-colorNeutralBackground1Pressed);
684-
border: 1px solid var(--webchat-colorNeutralStroke1Pressed);
692+
border: var(--webchat-strokeWidthThin) solid var(--webchat-colorNeutralStroke1Pressed);
685693
}
686694
}
687695

688696
:global(.webchat-fluent).theme :global(.webchat__feedback-form-text-area) {
689-
display: grid;
690-
grid-template-areas: 'main';
691-
max-height: 200px;
692-
overflow: hidden;
693697
background-color: var(--webchat-colorNeutralBackground1);
694698
border-radius: var(--webchat-borderRadiusMedium);
695-
border: 1px solid var(--webchat-colorNeutralStroke1);
699+
border: var(--webchat-strokeWidthThin) solid var(--webchat-colorNeutralStroke1);
696700
font-family: var(--webchat-fontFamilyBase);
697701
font-size: var(--webchat-fontSizeBase300);
698702
line-height: var(--webchat-lineHeightBase300);
699703
gap: var(--webchat-spacingVerticalSNudge);
700704
padding: var(--webchat-spacingVerticalS) var(--webchat-spacingHorizontalM);
701-
position: relative;
702-
min-width: 280px;
703705
&::after {
704706
border-bottom-left-radius: var(--webchat-borderRadiusMedium);
705707
border-bottom-right-radius: var(--webchat-borderRadiusMedium);
706-
border-bottom: 3px solid var(--webchat-colorBrandForeground1);
707-
bottom: -1px;
708-
clip-path: inset(calc(100% - 3px) 50% 0 50%);
709-
content: '';
710-
height: 4px;
711-
left: -1px;
712-
position: absolute;
713-
right: -1px;
714-
transition: clip-path 0 cubic-bezier(1, 0, 1, 1);
708+
border-bottom: var(--webchat-strokeWidthThicker) solid var(--webchat-colorBrandForeground1);
709+
clip-path: inset(calc(100% - var(--webchat-strokeWidthThicker)) 50% 0 50%);
710+
transition: clip-path var(--webchat-durationNormal) var(--webchat-curveDecelerateMid);
715711
}
716712
&:focus-within {
717-
border: 1px solid var(--webchat-colorNeutralStroke1);
713+
border: var(--webchat-strokeWidthThin) solid var(--webchat-colorNeutralStroke1);
718714
}
719715
&:focus-within::after {
720-
clip-path: inset(calc(100% - 3px) 0 0 0);
721-
transition: clip-path var(--webchat-durationNormal) cubic-bezier(0, 0, 0, 1);
716+
clip-path: inset(calc(100% - var(--webchat-strokeWidthThicker)) 0 0 0);
717+
transition: clip-path var(--webchat-durationNormal) var(--webchat-curveDecelerateMid);
722718
}
723719
}

0 commit comments

Comments
 (0)