Skip to content

Commit

Permalink
feat(feedback): [v7] New feedback button design (#11841)
Browse files Browse the repository at this point in the history
Backport of #11641 to
v7
  • Loading branch information
c298lee authored Apr 30, 2024
1 parent 77a51bd commit 6f7095d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/feedback/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const LIGHT_THEME = {
backgroundHover: '#f6f6f7',
foreground: '#2b2233',
border: '1.5px solid rgba(41, 35, 47, 0.13)',
borderRadius: '12px',
borderRadius: '25px',
boxShadow: '0px 4px 24px 0px rgba(43, 34, 51, 0.12)',

success: '#268d75',
Expand Down
17 changes: 15 additions & 2 deletions packages/feedback/src/widget/Actor.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,14 @@ export function createActorStyles(d: Document): HTMLStyleElement {
const style = d.createElement('style');
style.textContent = `
.widget__actor {
line-height: 25px;
position: fixed;
left: var(--left);
right: var(--right);
bottom: var(--bottom);
top: var(--top);
z-index: var(--z-index);
line-height: 16px;
display: flex;
align-items: center;
Expand All @@ -16,7 +23,7 @@ export function createActorStyles(d: Document): HTMLStyleElement {
font-family: inherit;
font-size: var(--font-size);
font-weight: 600;
padding: 12px 16px;
padding: 16px;
text-decoration: none;
z-index: 9000;
Expand Down Expand Up @@ -46,6 +53,12 @@ export function createActorStyles(d: Document): HTMLStyleElement {
.widget__actor__text {
}
@media (max-width: 600px) {
.widget__actor__text {
display: none;
}
}
.feedback-icon path {
fill: var(--foreground);
}
Expand Down

0 comments on commit 6f7095d

Please sign in to comment.