diff --git a/src/components/Layout/Feedback.tsx b/src/components/Layout/Feedback.tsx
index b118e9ed7..4f8ad644c 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..8ab329eec 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 1db966082..c9f68c5d1 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) => (