Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
coopwire-hypothesis
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
孙灵跃 Leon Sun
coopwire-hypothesis
Commits
1b79750e
Commit
1b79750e
authored
Apr 08, 2021
by
Lyza Danger Gardner
Committed by
Lyza Gardner
Apr 09, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add client-specific button patterns
parent
45c11245
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
133 additions
and
5 deletions
+133
-5
ButtonPatterns.js
dev-server/ui-playground/components/ButtonPatterns.js
+133
-5
No files found.
dev-server/ui-playground/components/ButtonPatterns.js
View file @
1b79750e
...
@@ -5,22 +5,150 @@ import {
...
@@ -5,22 +5,150 @@ import {
PatternExample
,
PatternExample
,
}
from
'../shared/components/PatternPage'
;
}
from
'../shared/components/PatternPage'
;
import
{
IconButton
}
from
'../../../src/shared/components/buttons'
;
import
{
IconButton
,
LabeledButton
,
LinkButton
,
}
from
'../../../src/shared/components/buttons'
;
export
default
function
ButtonPatterns
()
{
export
default
function
ButtonPatterns
()
{
return
(
return
(
<
PatternPage
title
=
"Buttons"
>
<
PatternPage
title
=
"Buttons"
>
<
Pattern
title
=
"PublishControlButton"
>
<
p
>
Customizes
<
code
>
LabeledButton
<
/code> styling to disable{' '
}
<
code
>
border
-
radius
<
/code> on the right side. This makes the publis
h
button
fit
with
a
drop
-
down
menu
next
to
it
.
<
/p
>
<
PatternExamples
>
<
PatternExample
details
=
"Basic usage"
>
<
LabeledButton
className
=
"PublishControlButton"
variant
=
"primary"
>
Publish
to
My
Group
<
/LabeledButton
>
<
/PatternExample
>
<
/PatternExamples
>
<
/Pattern
>
<
Pattern
title
=
"InlineLinkButton"
>
<
p
>
Customizes
<
code
>
LinkButton
<
/code> styling to position inline; dar
k
variant
always
has
underline
.
<
/p
>
<
PatternExamples
>
<
PatternExample
details
=
"Basic usage"
>
<
LinkButton
className
=
"InlineLinkButton"
>
Log
in
<
/LinkButton
>
<
/PatternExample
>
<
PatternExample
details
=
"Dark variant: Always has underline"
>
<
LinkButton
className
=
"InlineLinkButton"
variant
=
"dark"
>
Log
in
<
/LinkButton
>
<
/PatternExample
>
<
/PatternExamples
>
<
/Pattern
>
<
Pattern
title
=
"Non-Responsive IconButton"
>
<
Pattern
title
=
"Non-Responsive IconButton"
>
<
p
>
<
p
>
An
icon
-
only
button
overriding
responsive
affordances
to
fit
in
An
icon
-
only
button
overriding
responsive
affordances
to
fit
in
specific
or
tight
spaces
.
specific
or
tight
spaces
.
These
buttons
do
not
have
a
minimum
size
(
for
tap
-
target
size
)
applied
for
touch
-
screen
/
narrow
viewports
.
<
/p
>
<
/p
>
<
PatternExamples
>
<
PatternExamples
>
<
PatternExample
details
=
"Sizes: medium is default"
>
<
PatternExample
details
=
"Sizes: medium is default"
>
<
IconButton
icon
=
"edit"
title
=
"Edit"
size
=
"small"
/>
<
IconButton
<
IconButton
icon
=
"edit"
title
=
"Edit"
size
=
"medium"
/>
className
=
"NonResponsiveIconButton"
<
IconButton
icon
=
"edit"
title
=
"Edit"
size
=
"large"
/>
icon
=
"edit"
title
=
"Edit"
size
=
"small"
/>
<
IconButton
className
=
"NonResponsiveIconButton"
icon
=
"edit"
title
=
"Edit"
size
=
"medium"
/>
<
IconButton
className
=
"NonResponsiveIconButton"
icon
=
"edit"
title
=
"Edit"
size
=
"large"
/>
<
/PatternExample
>
<
/PatternExamples
>
<
/Pattern
>
<
Pattern
title
=
"PaginationPageButton"
>
<
p
>
Style
customization
for
<
code
>
LabeledButton
<
/code> that gives i
t
asymmetrical
padding
to
fit
well
as
pagination
controls
in
the
Notebook
.
<
/p
>
<
PatternExamples
>
<
PatternExample
details
=
"Page numbers"
style
=
{{
backgroundColor
:
'#ececec'
}}
>
<
LabeledButton
className
=
"PaginationPageButton"
variant
=
"dark"
>
9
<
/LabeledButton
>
<
LabeledButton
className
=
"PaginationPageButton"
variant
=
"dark"
pressed
>
10
<
/LabeledButton
>
<
LabeledButton
className
=
"PaginationPageButton"
variant
=
"dark"
>
11
<
/LabeledButton
>
<
/PatternExample
>
<
PatternExample
details
=
"Navigation buttons"
style
=
{{
backgroundColor
:
'#ececec'
}}
>
<
LabeledButton
className
=
"PaginationPageButton"
icon
=
"arrow-left"
variant
=
"dark"
>
Prev
<
/LabeledButton
>
<
LabeledButton
className
=
"PaginationPageButton"
icon
=
"arrow-right"
iconPosition
=
"right"
variant
=
"dark"
>
Next
<
/LabeledButton
>
<
/PatternExample
>
<
/PatternExamples
>
<
/Pattern
>
<
Pattern
title
=
"InputButton"
>
<
p
>
Customizes
<
code
>
IconButton
<
/code> styling to make the button part o
f
a
composite
pattern
with
an
input
field
to
the
left
.
<
/p
>
<
PatternExamples
>
<
PatternExample
details
=
"Basic usage"
>
<
IconButton
className
=
"InputButton"
title
=
"Copy version details"
icon
=
"copy"
/>
<
/PatternExample
>
<
PatternExample
details
=
"Small size"
>
<
IconButton
className
=
"InputButton"
title
=
"Copy version details"
icon
=
"copy"
size
=
"small"
/>
<
/PatternExample
>
<
/PatternExample
>
<
/PatternExamples
>
<
/PatternExamples
>
<
/Pattern
>
<
/Pattern
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment