Skip to content

Commit acbdb57

Browse files
committed
fix(copy-markdown): 🐛 fix border color serialization bug on copy button
1 parent 97c135c commit acbdb57

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

packages/docusaurus-plugin-copy-markdown/src/client/copy-markdown-button.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,10 @@ function createCopyButton(
143143
Object.assign(button.style, {
144144
alignItems: "center",
145145
background: "transparent",
146-
border: `1px solid ${OUTLINE_COLOR}`,
146+
borderColor: OUTLINE_COLOR,
147147
borderRadius: "6px",
148+
borderStyle: "solid",
149+
borderWidth: "1px",
148150
color: "inherit",
149151
cursor: "pointer",
150152
display: "inline-flex",

0 commit comments

Comments
 (0)