diff --git a/src/components/Layout/Feedback.tsx b/src/components/Layout/Feedback.tsx
index 70f2ee321..5171fe359 100644
--- a/src/components/Layout/Feedback.tsx
+++ b/src/components/Layout/Feedback.tsx
@@ -45,13 +45,15 @@ const thumbsDownIcon = (
);
function sendGAEvent(isPositive: boolean) {
+ const category = isPositive ? 'like_button' : 'dislike_button';
+ const value = isPositive ? 1 : 0;
// Fragile. Don't change unless you've tested the network payload
// and verified that the right events actually show up in GA.
// @ts-ignore
gtag('event', 'feedback', {
- event_category: 'button',
+ event_category: category,
event_label: window.location.pathname,
- value: isPositive ? 1 : 0,
+ event_value: value,
});
}
diff --git a/src/components/Layout/Sidebar/SidebarLink.tsx b/src/components/Layout/Sidebar/SidebarLink.tsx
index 180ded867..8a71d9e6e 100644
--- a/src/components/Layout/Sidebar/SidebarLink.tsx
+++ b/src/components/Layout/Sidebar/SidebarLink.tsx
@@ -77,7 +77,7 @@ export function SidebarLink({
{title}{' '}
{canary && (
)}
diff --git a/src/components/MDX/MDXComponents.tsx b/src/components/MDX/MDXComponents.tsx
index e31d2ce68..353100009 100644
--- a/src/components/MDX/MDXComponents.tsx
+++ b/src/components/MDX/MDXComponents.tsx
@@ -243,7 +243,7 @@ function Illustration({
src={src}
alt={alt}
style={{maxHeight: 300}}
- className="bg-white rounded-lg"
+ className="rounded-lg"
/>
{caption ? (
@@ -275,7 +275,12 @@ function IllustrationBlock({
const images = imageInfos.map((info, index) => (