33The Reflag Browser SDK includes a UI you can use to collect feedback from user
44about particular flags.
55
6- ![ image ] ( https://github.com/reflagcom/javascript/ assets/34348/c387bac1-f2e2-4efd-9dda-5030d76f9532 )
6+ ![ Feedback UI example ] ( / assets/feedback-ui-header.png )
77
88## Global feedback configuration
99
@@ -186,7 +186,7 @@ page. It can be dismissed with the keyboard shortcut `<ESC>` or the dedicated
186186close button in the top right corner. It is always centered on the page, capturing
187187focus, and making it the primary interface the user needs to interact with.
188188
189- ![ image ] ( https://github.com/reflagcom/javascript/ assets/331790/6c6efbd3-cf7d-4d5b-b126-7ac978b2e512 )
189+ ![ Feedback UI with modal positioning ] ( / assets/feedback-ui-positioning-modal.png )
190190
191191Using a modal is the strongest possible push for feedback. You are interrupting the
192192user's normal flow, which can cause annoyance. A good use-case for the modal is
@@ -206,7 +206,7 @@ user's interaction with the rest of the page. It can be dismissed with the dedic
206206close button, but will automatically disappear after a short time period if the user
207207does not interact with it.
208208
209- ![ image ] ( https://github.com/reflagcom/javascript/ assets/331790/30413513-fd5f-4a2c-852a-9b074fa4666c )
209+ ![ Feedback UI with dialog positioning ] ( / assets/feedback-ui-positioning-dialog.png )
210210
211211Using a dialog is a soft push for feedback. It lets the user continue their work
212212with a minimal amount of intrusion. The user can opt-in to respond but is not
@@ -234,7 +234,7 @@ position: {
234234A popover that is anchored relative to a DOM-element (typically a button). It can
235235be dismissed by clicking outside the popover or by pressing the dedicated close button.
236236
237- ![ image ] ( https://github.com/reflagcom/javascript/ assets/331790/4c5c5597-9ed3-4d4d-90c0-950926d0d967 )
237+ ![ Feedback UI with popover positioning ] ( / assets/feedback-ui-positioning-popover.png )
238238
239239You can use the popover mode to implement your own button to collect feedback manually.
240240
@@ -273,8 +273,6 @@ translations by passing an object in the options to either or both of the
273273These translations will replace the English ones used by the feedback interface.
274274See examples below.
275275
276- ![ image] ( https://github.com/reflagcom/javascript/assets/331790/68805b38-e9f6-4de5-9f55-188216983e3c )
277-
278276See [ default English localization keys] ( https://github.com/reflagcom/javascript/tree/main/packages/browser-sdk/src/feedback/ui/config/defaultTranslations.tsx )
279277for a reference of what translation keys can be supplied.
280278
@@ -359,7 +357,7 @@ properties to your page in your CSS `:root`-scope.
359357
360358For example, a dark mode theme might look like this:
361359
362- 
360+ 
363361
364362` ` ` css
365363: root {
0 commit comments