diff --git a/dev-server/ui-playground/components/ButtonPatterns.js b/dev-server/ui-playground/components/ButtonPatterns.js index 1425781e370..2f80b15e712 100644 --- a/dev-server/ui-playground/components/ButtonPatterns.js +++ b/dev-server/ui-playground/components/ButtonPatterns.js @@ -4,59 +4,58 @@ import { LinkButton, } from '@hypothesis/frontend-shared'; -import { - PatternPage, - Pattern, - PatternExamples, - PatternExample, -} from '@hypothesis/frontend-shared/lib/pattern-library/components/PatternPage'; +// TODO: Update after https://github.com/hypothesis/frontend-shared/issues/179 +// is resolved +import Library from '@hypothesis/frontend-shared/lib/pattern-library/components/Library'; export default function ButtonPatterns() { return ( - - + +

Customizes LabeledButton styling to disable{' '} border-radius on the right side. This makes the publish button fit with a drop-down menu next to it.

- - + + Publish to My Group - - -
+ + + - +

Customizes LinkButton styling to position inline; dark variant always has underline.

- - + + Log in - - + + + + Log in - - -
+ + + - +

An icon-only button overriding responsive affordances to fit in specific or tight spaces. These buttons do not have a minimum size (for tap-target size) applied for touch-screen/narrow viewports.

- - + + - - -
+ + + - +

Style customization for LabeledButton that gives it asymmetrical padding to fit well as pagination controls in the Notebook.

- - + + 9 @@ -104,11 +100,11 @@ export default function ButtonPatterns() { 11 - - + + + + + Next - - -
+ + + - +

Customizes IconButton styling to make the button part of a composite pattern with an input field to the left.

- - + + - - + + + + - - -
-
+ + + + ); }