Skip to content

Commit d4526b9

Browse files
committed
Core Components and APIs: list Pressable
1 parent 682333d commit d4526b9

10 files changed

Lines changed: 72 additions & 24 deletions

File tree

docs/components-and-apis.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@ Most apps will end up using one or more of these basic components.
4343
<p>A component for inputting text into the app via a keyboard.</p>
4444
</a>
4545
</div>
46+
<div className="component">
47+
<a href="./pressable">
48+
<h3>Pressable</h3>
49+
<p>A wrapper component that can detect various stages of press interactions on any of its children.</p>
50+
</a>
51+
</div>
4652
<div className="component">
4753
<a href="./scrollview">
4854
<h3>ScrollView</h3>

website/src/css/customTheme.scss

Lines changed: 18 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1712,8 +1712,9 @@ td .label {
17121712
/* Components grid */
17131713

17141714
article .component-grid {
1715-
max-width: 800px;
17161715
margin-bottom: 22px;
1716+
display: grid;
1717+
grid-column-gap: 22px;
17171718

17181719
.component {
17191720
border: 1px solid var(--ifm-color-emphasis-500);
@@ -1725,21 +1726,22 @@ article .component-grid {
17251726
overflow: hidden;
17261727

17271728
&:hover {
1728-
transform: scale(1.05);
1729+
transform: scale(1.033);
17291730
}
17301731

17311732
> a {
17321733
display: block;
17331734
height: 100%;
17341735
border-bottom: none;
1736+
background: none !important;
17351737
}
17361738

17371739
h3 {
17381740
font-size: 16px;
17391741
font-weight: 600;
17401742
margin: 0;
17411743
padding: 0 10px;
1742-
background-color: var(--home-button-primary);
1744+
background-color: var(--ifm-color-info-darkest);
17431745
color: var(--home-button-primary-text);
17441746
line-height: 36px;
17451747

@@ -1749,13 +1751,14 @@ article .component-grid {
17491751
}
17501752

17511753
p {
1752-
padding: 10px;
1754+
padding: 6px 10px 8px;
17531755
font-size: 15px;
17541756
margin: 2px;
17551757

17561758
code {
17571759
font-size: 15px;
17581760
padding: 0 1px;
1761+
top: 0;
17591762
}
17601763
}
17611764
}
@@ -1765,13 +1768,6 @@ html[data-theme="dark"] .component {
17651768
border: 1px solid var(--ifm-color-emphasis-200);
17661769
}
17671770

1768-
@supports (display: grid) {
1769-
article .component-grid {
1770-
display: grid;
1771-
grid-column-gap: 22px;
1772-
}
1773-
}
1774-
17751771
@media only screen and (min-width: 768px) {
17761772
article .component-grid.component-grid-border {
17771773
border-bottom: 1px solid var(--ifm-table-border-color);
@@ -1784,22 +1780,20 @@ html[data-theme="dark"] .component {
17841780
vertical-align: top;
17851781
}
17861782

1787-
@supports (display: grid) {
1788-
article .component-grid {
1789-
grid-template-columns: repeat(2, 1fr);
1790-
}
1783+
article .component-grid {
1784+
grid-template-columns: repeat(2, 1fr);
1785+
}
17911786

1792-
@media only screen and (min-width: 1440px) {
1793-
article .component-grid {
1794-
grid-template-columns: repeat(3, 1fr);
1795-
}
1787+
@media only screen and (min-width: 1440px) {
1788+
article .component-grid {
1789+
grid-template-columns: repeat(3, 1fr);
17961790
}
1791+
}
17971792

1798-
article .component {
1799-
width: auto;
1800-
height: auto;
1801-
margin: 0;
1802-
}
1793+
article .component {
1794+
width: auto;
1795+
height: auto;
1796+
margin: 0;
18031797
}
18041798
}
18051799

website/versioned_docs/version-0.73/components-and-apis.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@ Most apps will end up using one or more of these basic components.
4343
<p>A component for inputting text into the app via a keyboard.</p>
4444
</a>
4545
</div>
46+
<div className="component">
47+
<a href="./pressable">
48+
<h3>Pressable</h3>
49+
<p>A wrapper component that can detect various stages of press interactions on any of its children.</p>
50+
</a>
51+
</div>
4652
<div className="component">
4753
<a href="./scrollview">
4854
<h3>ScrollView</h3>

website/versioned_docs/version-0.74/components-and-apis.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@ Most apps will end up using one or more of these basic components.
4343
<p>A component for inputting text into the app via a keyboard.</p>
4444
</a>
4545
</div>
46+
<div className="component">
47+
<a href="./pressable">
48+
<h3>Pressable</h3>
49+
<p>A wrapper component that can detect various stages of press interactions on any of its children.</p>
50+
</a>
51+
</div>
4652
<div className="component">
4753
<a href="./scrollview">
4854
<h3>ScrollView</h3>

website/versioned_docs/version-0.75/components-and-apis.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@ Most apps will end up using one or more of these basic components.
4343
<p>A component for inputting text into the app via a keyboard.</p>
4444
</a>
4545
</div>
46+
<div className="component">
47+
<a href="./pressable">
48+
<h3>Pressable</h3>
49+
<p>A wrapper component that can detect various stages of press interactions on any of its children.</p>
50+
</a>
51+
</div>
4652
<div className="component">
4753
<a href="./scrollview">
4854
<h3>ScrollView</h3>

website/versioned_docs/version-0.76/components-and-apis.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@ Most apps will end up using one or more of these basic components.
4343
<p>A component for inputting text into the app via a keyboard.</p>
4444
</a>
4545
</div>
46+
<div className="component">
47+
<a href="./pressable">
48+
<h3>Pressable</h3>
49+
<p>A wrapper component that can detect various stages of press interactions on any of its children.</p>
50+
</a>
51+
</div>
4652
<div className="component">
4753
<a href="./scrollview">
4854
<h3>ScrollView</h3>

website/versioned_docs/version-0.77/components-and-apis.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@ Most apps will end up using one or more of these basic components.
4343
<p>A component for inputting text into the app via a keyboard.</p>
4444
</a>
4545
</div>
46+
<div className="component">
47+
<a href="./pressable">
48+
<h3>Pressable</h3>
49+
<p>A wrapper component that can detect various stages of press interactions on any of its children.</p>
50+
</a>
51+
</div>
4652
<div className="component">
4753
<a href="./scrollview">
4854
<h3>ScrollView</h3>

website/versioned_docs/version-0.78/components-and-apis.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@ Most apps will end up using one or more of these basic components.
4343
<p>A component for inputting text into the app via a keyboard.</p>
4444
</a>
4545
</div>
46+
<div className="component">
47+
<a href="./pressable">
48+
<h3>Pressable</h3>
49+
<p>A wrapper component that can detect various stages of press interactions on any of its children.</p>
50+
</a>
51+
</div>
4652
<div className="component">
4753
<a href="./scrollview">
4854
<h3>ScrollView</h3>

website/versioned_docs/version-0.79/components-and-apis.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@ Most apps will end up using one or more of these basic components.
4343
<p>A component for inputting text into the app via a keyboard.</p>
4444
</a>
4545
</div>
46+
<div className="component">
47+
<a href="./pressable">
48+
<h3>Pressable</h3>
49+
<p>A wrapper component that can detect various stages of press interactions on any of its children.</p>
50+
</a>
51+
</div>
4652
<div className="component">
4753
<a href="./scrollview">
4854
<h3>ScrollView</h3>

website/versioned_docs/version-0.80/components-and-apis.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@ Most apps will end up using one or more of these basic components.
4343
<p>A component for inputting text into the app via a keyboard.</p>
4444
</a>
4545
</div>
46+
<div className="component">
47+
<a href="./pressable">
48+
<h3>Pressable</h3>
49+
<p>A wrapper component that can detect various stages of press interactions on any of its children.</p>
50+
</a>
51+
</div>
4652
<div className="component">
4753
<a href="./scrollview">
4854
<h3>ScrollView</h3>

0 commit comments

Comments
 (0)