diff --git a/web/samples_index/lib/src/templates.dart b/web/samples_index/lib/src/templates.dart index 1e3c22d0207..46ef0e6124a 100644 --- a/web/samples_index/lib/src/templates.dart +++ b/web/samples_index/lib/src/templates.dart @@ -133,14 +133,14 @@ String _backgroundImage(String url) => String _indexCards(List samples) => samples.map(_indexCard).join(); String _indexCard(Sample sample) => '''
- +
'''; @@ -186,18 +186,18 @@ String _descriptionButtons(Sample sample) { var sampleLink = sample.web; if (sampleLink != null && sampleLink.isNotEmpty) { buf.write( - ''''''); + ''' Launch App'''); } if (sample.type == 'app' || sample.type == 'sample' || sample.type == 'demo') { buf.write( - ''''''); +'''); } return buf.toString(); } diff --git a/web/samples_index/web/main.dart b/web/samples_index/web/main.dart index 2f066c24609..00653733b90 100644 --- a/web/samples_index/web/main.dart +++ b/web/samples_index/web/main.dart @@ -31,12 +31,7 @@ void main() { filterCards(); }); - // Use a ripple effect on all cards - querySelectorAll('.mdc-card__primary-action').forEach((el) => MDCRipple(el) - // Navigate to the description page when tapped - ..listen('click', (e) { - window.location.href = el.attributes['href']!; - })); + querySelectorAll('.mdc-card__primary-action').forEach((el) => MDCRipple(el)); // Filter cards on each keypress searchBar.listen('keydown', (e) async { diff --git a/web/samples_index/web/styles.scss b/web/samples_index/web/styles.scss index 1320585b2b1..877540688fd 100644 --- a/web/samples_index/web/styles.scss +++ b/web/samples_index/web/styles.scss @@ -226,11 +226,9 @@ a { flex-direction: column; } - .buttons { - button { - margin-right: 12px; - margin-bottom: 8px; - } + .buttons a { + margin-right: 12px; + margin-bottom: 8px; } }