Skip to content

Commit 7d72205

Browse files
authored
Core Components and APIs: list Pressable (#4713)
1 parent a2c5246 commit 7d72205

File tree

7 files changed

+54
-24
lines changed

7 files changed

+54
-24
lines changed

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
@@ -1770,8 +1770,9 @@ td .label {
17701770
/* Components grid */
17711771

17721772
article .component-grid {
1773-
max-width: 800px;
17741773
margin-bottom: 22px;
1774+
display: grid;
1775+
grid-column-gap: 22px;
17751776

17761777
.component {
17771778
border: 1px solid var(--ifm-color-emphasis-500);
@@ -1783,21 +1784,22 @@ article .component-grid {
17831784
overflow: hidden;
17841785

17851786
&:hover {
1786-
transform: scale(1.05);
1787+
transform: scale(1.033);
17871788
}
17881789

17891790
> a {
17901791
display: block;
17911792
height: 100%;
17921793
border-bottom: none;
1794+
background: none !important;
17931795
}
17941796

17951797
h3 {
17961798
font-size: 16px;
17971799
font-weight: 600;
17981800
margin: 0;
17991801
padding: 0 10px;
1800-
background-color: var(--home-button-primary);
1802+
background-color: var(--ifm-color-info-darkest);
18011803
color: var(--home-button-primary-text);
18021804
line-height: 36px;
18031805

@@ -1807,14 +1809,15 @@ article .component-grid {
18071809
}
18081810

18091811
p {
1810-
padding: 10px;
1812+
padding: 6px 10px 8px;
18111813
font-size: 15px;
18121814
margin: 2px;
18131815
color: var(--ifm-font-color-base);
18141816

18151817
code {
18161818
font-size: 15px;
18171819
padding: 0 1px;
1820+
top: 0;
18181821
}
18191822
}
18201823
}
@@ -1824,13 +1827,6 @@ html[data-theme="dark"] .component {
18241827
border: 1px solid var(--ifm-color-emphasis-200);
18251828
}
18261829

1827-
@supports (display: grid) {
1828-
article .component-grid {
1829-
display: grid;
1830-
grid-column-gap: 22px;
1831-
}
1832-
}
1833-
18341830
@media only screen and (min-width: 768px) {
18351831
article .component-grid.component-grid-border {
18361832
border-bottom: 1px solid var(--ifm-table-border-color);
@@ -1843,22 +1839,20 @@ html[data-theme="dark"] .component {
18431839
vertical-align: top;
18441840
}
18451841

1846-
@supports (display: grid) {
1847-
article .component-grid {
1848-
grid-template-columns: repeat(2, 1fr);
1849-
}
1842+
article .component-grid {
1843+
grid-template-columns: repeat(2, 1fr);
1844+
}
18501845

1851-
@media only screen and (min-width: 1440px) {
1852-
article .component-grid {
1853-
grid-template-columns: repeat(3, 1fr);
1854-
}
1846+
@media only screen and (min-width: 1440px) {
1847+
article .component-grid {
1848+
grid-template-columns: repeat(3, 1fr);
18551849
}
1850+
}
18561851

1857-
article .component {
1858-
width: auto;
1859-
height: auto;
1860-
margin: 0;
1861-
}
1852+
article .component {
1853+
width: auto;
1854+
height: auto;
1855+
margin: 0;
18621856
}
18631857
}
18641858

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>

website/versioned_docs/version-0.81/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)