Skip to content

Commit 6f7095d

Browse files
authored
feat(feedback): [v7] New feedback button design (#11841)
Backport of #11641 to v7
1 parent 77a51bd commit 6f7095d

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

packages/feedback/src/constants.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const LIGHT_THEME = {
1616
backgroundHover: '#f6f6f7',
1717
foreground: '#2b2233',
1818
border: '1.5px solid rgba(41, 35, 47, 0.13)',
19-
borderRadius: '12px',
19+
borderRadius: '25px',
2020
boxShadow: '0px 4px 24px 0px rgba(43, 34, 51, 0.12)',
2121

2222
success: '#268d75',

packages/feedback/src/widget/Actor.css.ts

+15-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,14 @@ export function createActorStyles(d: Document): HTMLStyleElement {
55
const style = d.createElement('style');
66
style.textContent = `
77
.widget__actor {
8-
line-height: 25px;
8+
position: fixed;
9+
left: var(--left);
10+
right: var(--right);
11+
bottom: var(--bottom);
12+
top: var(--top);
13+
z-index: var(--z-index);
14+
15+
line-height: 16px;
916
1017
display: flex;
1118
align-items: center;
@@ -16,7 +23,7 @@ export function createActorStyles(d: Document): HTMLStyleElement {
1623
font-family: inherit;
1724
font-size: var(--font-size);
1825
font-weight: 600;
19-
padding: 12px 16px;
26+
padding: 16px;
2027
text-decoration: none;
2128
z-index: 9000;
2229
@@ -46,6 +53,12 @@ export function createActorStyles(d: Document): HTMLStyleElement {
4653
.widget__actor__text {
4754
}
4855
56+
@media (max-width: 600px) {
57+
.widget__actor__text {
58+
display: none;
59+
}
60+
}
61+
4962
.feedback-icon path {
5063
fill: var(--foreground);
5164
}

0 commit comments

Comments
 (0)