|
643 | 643 |
|
644 | 644 | :global(.webchat-fluent).theme :global(.webchat__feedback-form__button__submit) { |
645 | 645 | background-color: var(--webchat-colorBrandForeground1); |
646 | | - border: 1px solid var(--webchat-colorBrandForeground1); |
| 646 | + border: var(--webchat-strokeWidthThin) solid var(--webchat-colorBrandForeground1); |
647 | 647 | border-radius: var(--webchat-borderRadiusMedium); |
648 | 648 | color: var(--webchat-colorNeutralBackground1); |
649 | 649 | cursor: pointer; |
650 | 650 | font-family: var(--webchat-fontFamilyBase); |
651 | 651 | font-size: var(--webchat-fontSizeBase300); |
652 | | - height: 24px; |
653 | | - padding: 0 var(--webchat-spacingHorizontalS); |
| 652 | + padding: var(--webchat-spacingVerticalNone) var(--webchat-spacingHorizontalS); |
654 | 653 |
|
655 | 654 | &:hover { |
656 | 655 | 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); |
658 | 662 | } |
659 | 663 |
|
660 | 664 | &:active { |
661 | 665 | background-color: var(--webchat-colorBrandForeground2Pressed); |
662 | | - border: 1px solid var(--webchat-colorBrandForeground2Pressed); |
| 666 | + border: var(--webchat-strokeWidthThin) solid var(--webchat-colorBrandForeground2Pressed); |
663 | 667 | } |
664 | 668 | } |
665 | 669 |
|
666 | 670 | :global(.webchat-fluent).theme :global(.webchat__feedback-form__button__cancel) { |
667 | 671 | background-color: var(--webchat-colorNeutralBackground1); |
668 | | - border: 1px solid var(--webchat-colorNeutralStroke1); |
| 672 | + border: var(--webchat-strokeWidthThin) solid var(--webchat-colorNeutralStroke1); |
669 | 673 | border-radius: var(--webchat-borderRadiusMedium); |
670 | 674 | color: var(--webchat-colorNeutralForeground3); |
671 | 675 | cursor: pointer; |
672 | 676 | font-family: var(--webchat-fontFamilyBase); |
673 | 677 | font-size: var(--webchat-fontSizeBase300); |
674 | | - height: 24px; |
675 | | - padding: 0 var(--webchat-spacingHorizontalS); |
| 678 | + padding: var(--webchat-spacingVerticalNone) var(--webchat-spacingHorizontalS); |
676 | 679 |
|
677 | 680 | &:hover { |
678 | 681 | 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); |
680 | 688 | } |
681 | 689 |
|
682 | 690 | &:active { |
683 | 691 | background-color: var(--webchat-colorNeutralBackground1Pressed); |
684 | | - border: 1px solid var(--webchat-colorNeutralStroke1Pressed); |
| 692 | + border: var(--webchat-strokeWidthThin) solid var(--webchat-colorNeutralStroke1Pressed); |
685 | 693 | } |
686 | 694 | } |
687 | 695 |
|
688 | 696 | :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; |
693 | 697 | background-color: var(--webchat-colorNeutralBackground1); |
694 | 698 | border-radius: var(--webchat-borderRadiusMedium); |
695 | | - border: 1px solid var(--webchat-colorNeutralStroke1); |
| 699 | + border: var(--webchat-strokeWidthThin) solid var(--webchat-colorNeutralStroke1); |
696 | 700 | font-family: var(--webchat-fontFamilyBase); |
697 | 701 | font-size: var(--webchat-fontSizeBase300); |
698 | 702 | line-height: var(--webchat-lineHeightBase300); |
699 | 703 | gap: var(--webchat-spacingVerticalSNudge); |
700 | 704 | padding: var(--webchat-spacingVerticalS) var(--webchat-spacingHorizontalM); |
701 | | - position: relative; |
702 | | - min-width: 280px; |
703 | 705 | &::after { |
704 | 706 | border-bottom-left-radius: var(--webchat-borderRadiusMedium); |
705 | 707 | 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); |
715 | 711 | } |
716 | 712 | &:focus-within { |
717 | | - border: 1px solid var(--webchat-colorNeutralStroke1); |
| 713 | + border: var(--webchat-strokeWidthThin) solid var(--webchat-colorNeutralStroke1); |
718 | 714 | } |
719 | 715 | &: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); |
722 | 718 | } |
723 | 719 | } |
0 commit comments