Skip to content

Commit 0a46bfa

Browse files
docs: demo homepage - adding alt tags to images and fixing cta alignment (#1022)
* docs: demo homepage - adding alt tags to images and fixing cta alignment * should've used initial instead of inherit Co-authored-by: [ Cassondra ] <[email protected]>
1 parent 74418ec commit 0a46bfa

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

index.html

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@
7373
margin-bottom: 16px;
7474
}
7575

76+
.header-ctas pfe-cta a {
77+
min-width: 250px;
78+
}
79+
7680
@media (min-width: 500px) {
7781
.header-ctas {
7882
flex-direction: row;
@@ -82,6 +86,10 @@
8286
margin-bottom: 0;
8387
margin-right: 16px;
8488
}
89+
90+
.header-ctas pfe-cta a {
91+
min-width: initial;
92+
}
8593
}
8694
</style>
8795
</head>
@@ -104,23 +112,23 @@ <h1 class="title">PatternFly Elements</h1>
104112
<pfe-band pfe-color="lightest">
105113
<div class="pfe-l-grid pfe-m-gutters pfe-m-all-4-col-on-xl pfe-m-all-6-col-on-lg pfe-m-all-6-col-on-sm">
106114
<pfe-card pfe-color="lightest" pfe-border>
107-
<img pfe-overflow="top right left" src="/brand/[email protected]">
115+
<img pfe-overflow="top right left" src="/brand/[email protected]" alt="">
108116
<h2>Components</h2>
109117
<p>View the complete inventory of PatternFly Elements components.</p>
110118
<pfe-cta slot="pfe-card--footer">
111119
<a href="/examples">View the components</a>
112120
</pfe-cta>
113121
</pfe-card>
114122
<pfe-card pfe-color="lightest" pfe-border>
115-
<img pfe-overflow="top right left" src="/brand/[email protected]">
123+
<img pfe-overflow="top right left" src="/brand/[email protected]" alt="">
116124
<h2>Develop</h2>
117125
<p>Learn how to develop components for PatternFly Elements. View the basics on how to write HTML, CSS, and JavaScript for PatternFly Elements as well as how to properly test a component.</p>
118126
<pfe-cta slot="pfe-card--footer">
119127
<a href="https://patternfly.github.io/patternfly-elements/develop/">Start developing components</a>
120128
</pfe-cta>
121129
</pfe-card>
122130
<pfe-card pfe-color="lightest" pfe-border>
123-
<img pfe-overflow="top right left" src="/brand/[email protected]">
131+
<img pfe-overflow="top right left" src="/brand/[email protected]" alt="">
124132
<h2>Theming and styles</h2>
125133
<p>View the documentation on the theme palette, colors, layouts, how to theme slots, and how to write styles</p>
126134
<pfe-cta slot="pfe-card--footer">
@@ -133,7 +141,7 @@ <h2>Theming and styles</h2>
133141
<h2 class="pfe-l--text-align--center">Learn more</h2>
134142
<div class="pfe-l-grid pfe-m-gutters pfe-m-all-4-col">
135143
<pfe-card pfe-color="lightest">
136-
<img pfe-overflow="top right left" src="https://cdn-images-1.medium.com/fit/t/1600/480/1*zHHMQQBMora88A_WQJiNtw.png">
144+
<img pfe-overflow="top right left" src="https://cdn-images-1.medium.com/fit/t/1600/480/1*zHHMQQBMora88A_WQJiNtw.png" alt="">
137145
<h3>
138146
<a href="https://medium.com/patternfly-elements/web-components-and-seo-58227413e072">Web Components and SEO</a>
139147
</h3>
@@ -188,7 +196,7 @@ <h3>
188196
</pfe-cta>
189197
</pfe-card>
190198
<pfe-card pfe-color="lightest">
191-
<img pfe-overflow="left top right" src="https://cdn-images-1.medium.com/fit/t/1600/480/1*VxME5U0fg6jyClhZBo-O3A.png">
199+
<img pfe-overflow="left top right" src="https://cdn-images-1.medium.com/fit/t/1600/480/1*VxME5U0fg6jyClhZBo-O3A.png" alt="">
192200
<h3>
193201
<a href="https://medium.com/patternfly-elements/more-resilientweb-components-in-angular-or-anywhere-else-with-mutationobserver-72a91cd7cf22">More Resilient Web Components in Angular (or anywhere else) with MutationObserver</a>
194202
</h3>
@@ -207,7 +215,7 @@ <h3>
207215
</pfe-cta>
208216
</pfe-card>
209217
<pfe-card pfe-color="lightest">
210-
<img pfe-overflow="left top right" src="https://cdn-images-1.medium.com/fit/t/1600/480/1*R29zV1u1Fj-s3gw1P_D5LQ.png">
218+
<img pfe-overflow="left top right" src="https://cdn-images-1.medium.com/fit/t/1600/480/1*R29zV1u1Fj-s3gw1P_D5LQ.png" alt="">
211219
<h3>
212220
<a href="https://medium.com/patternfly-elements/patternfly-elements-writing-automated-tests-e5af412931dd">Writing automated tests for PatternFly Elements</a>
213221
</h3>
@@ -217,7 +225,7 @@ <h3>
217225
</pfe-cta>
218226
</pfe-card>
219227
<pfe-card pfe-color="lightest">
220-
<img pfe-overflow="left top right" src="https://cdn-images-1.medium.com/fit/t/1600/480/1*6TbBJFAxhhi6K5WAbY5aCg.png">
228+
<img pfe-overflow="left top right" src="https://cdn-images-1.medium.com/fit/t/1600/480/1*6TbBJFAxhhi6K5WAbY5aCg.png" alt="">
221229
<h3>
222230
<a href="https://medium.com/patternfly-elements/patternfly-elements-how-to-build-a-demo-component-448c32069a21">How to build a demo component</a>
223231
</h3>

0 commit comments

Comments
 (0)