Skip to content

Commit d8831c5

Browse files
authored
feat(feedback): New feedback button design (#11641)
Updates feedback actor button with new designs. The button doesn't show the label on small viewports now. Window over 600px: <img width="167" alt="image" src="https://github.com/getsentry/sentry-javascript/assets/55311782/1e6cef63-288b-42d1-af07-edbcf32718d6"> Window under 600px: <img width="167" alt="image" src="https://github.com/getsentry/sentry-javascript/assets/55311782/c79520a4-f30e-4012-ac5a-b923ab19da0b"> Fixes #11541 and https://github.com/getsentry/team-replay/issues/413
1 parent d5a86e6 commit d8831c5

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

packages/feedback/src/constants/theme.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export const LIGHT_THEME = {
1010
backgroundHover: '#f6f6f7',
1111
foreground: '#2b2233',
1212
border: '1.5px solid rgba(41, 35, 47, 0.13)',
13-
borderRadius: '12px',
13+
borderRadius: '25px',
1414
boxShadow: '0px 4px 24px 0px rgba(43, 34, 51, 0.12)',
1515

1616
success: '#268d75',

packages/feedback/src/core/components/Actor.css.ts

+8-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export function createActorStyles(): HTMLStyleElement {
1414
top: var(--top);
1515
z-index: var(--z-index);
1616
17-
line-height: 25px;
17+
line-height: 16px;
1818
1919
display: flex;
2020
align-items: center;
@@ -26,7 +26,7 @@ export function createActorStyles(): HTMLStyleElement {
2626
font-family: inherit;
2727
font-size: var(--font-size);
2828
font-weight: 600;
29-
padding: 12px 16px;
29+
padding: 16px;
3030
text-decoration: none;
3131
z-index: 9000;
3232
@@ -56,6 +56,12 @@ export function createActorStyles(): HTMLStyleElement {
5656
.widget__actor__text {
5757
}
5858
59+
@media (max-width: 600px) {
60+
.widget__actor__text {
61+
display: none;
62+
}
63+
}
64+
5965
.feedback-icon path {
6066
fill: var(--foreground);
6167
}

0 commit comments

Comments
 (0)