diff --git a/CHANGELOG.md b/CHANGELOG.md index 7823e845..d3e01b30 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ ## Changelog +## 2.3.1 + +- [bug] Fix layout bug introduced in copy-button changes where wrapper was given `inline-block` ## 2.3.0 diff --git a/package-lock.json b/package-lock.json index 55f8cb6e..c9d93d76 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@mapbox/mr-ui", - "version": "2.3.0", + "version": "2.3.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@mapbox/mr-ui", - "version": "2.3.0", + "version": "2.3.1", "license": "BSD-2-Clause", "dependencies": { "@mapbox/mbx-assembly": "^1.3.0", diff --git a/package.json b/package.json index 76c23732..265175ce 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@mapbox/mr-ui", - "version": "2.3.0", + "version": "2.3.1", "description": "UI components for Mapbox projects", "main": "index.js", "homepage": "./", diff --git a/src/components/code-snippet/__snapshots__/code-snippet.test.tsx.snap b/src/components/code-snippet/__snapshots__/code-snippet.test.tsx.snap index a91e4dec..456a846d 100644 --- a/src/components/code-snippet/__snapshots__/code-snippet.test.tsx.snap +++ b/src/components/code-snippet/__snapshots__/code-snippet.test.tsx.snap @@ -339,7 +339,6 @@ exports[`CodeSnippet copy ranges renders as expected 1`] = ` aria-controls="radix-4" aria-expanded="false" aria-haspopup="dialog" - class="inline-block" data-state="closed" type="button" > @@ -393,7 +392,6 @@ exports[`CodeSnippet copy ranges renders as expected 1`] = ` aria-controls="radix-5" aria-expanded="false" aria-haspopup="dialog" - class="inline-block" data-state="closed" type="button" > @@ -630,7 +628,6 @@ exports[`CodeSnippet highlighted, no ranges, with onCopy callback renders as exp aria-controls="radix-0" aria-expanded="false" aria-haspopup="dialog" - class="inline-block" data-state="closed" type="button" > diff --git a/src/components/copy-button/__snapshots__/copy-button.test.tsx.snap b/src/components/copy-button/__snapshots__/copy-button.test.tsx.snap index fc738707..c05e6948 100644 --- a/src/components/copy-button/__snapshots__/copy-button.test.tsx.snap +++ b/src/components/copy-button/__snapshots__/copy-button.test.tsx.snap @@ -16,7 +16,6 @@ exports[`CopyButton all props renders as expected 1`] = ` aria-controls="radix-4" aria-expanded="false" aria-haspopup="dialog" - class="inline-block" data-state="closed" type="button" > @@ -48,7 +47,6 @@ exports[`CopyButton basic renders as expected 1`] = ` aria-controls="radix-0" aria-expanded="false" aria-haspopup="dialog" - class="inline-block" data-state="closed" type="button" > diff --git a/src/components/copy-button/copy-button.tsx b/src/components/copy-button/copy-button.tsx index bb6e37b1..fc11290a 100644 --- a/src/components/copy-button/copy-button.tsx +++ b/src/components/copy-button/copy-button.tsx @@ -130,7 +130,7 @@ export default function CopyButton({ hideWhenAnchorIsOffscreen={true} padding="small" > -
+
- - +
+ + + +
); }