Skip to content

Commit

Permalink
Fix inline-block bug and prepare 2.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
tristen committed Feb 8, 2023
1 parent aa82d91 commit 692025e
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": "./",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
>
Expand Down Expand Up @@ -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"
>
Expand Down Expand Up @@ -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"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
>
Expand Down Expand Up @@ -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"
>
Expand Down
2 changes: 1 addition & 1 deletion src/components/copy-button/copy-button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export default function CopyButton({
hideWhenAnchorIsOffscreen={true}
padding="small"
>
<div className="inline-block">
<div>
<Tooltip
disabled={showingFeedback}
coloring={themeTooltip}
Expand Down
8 changes: 5 additions & 3 deletions src/components/copy-button/examples/copy-button-c.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ import CopyButton from '../copy-button';

export default function Example() {
return (
<CopyButton themeTooltip="dark" text="Some copy from the custom element">
<button className="w240 btn">Just a custom element</button>
</CopyButton>
<div className="inline-block">
<CopyButton themeTooltip="dark" text="Some copy from the custom element">
<button className="w240 btn">Just a custom element</button>
</CopyButton>
</div>
);
}

0 comments on commit 692025e

Please sign in to comment.