Skip to content

Improve a11n #11

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Feb 2, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
♿️ A11 emojis
  • Loading branch information
johannchopin committed Jan 30, 2022
commit cc9567bceb51bf5aeff94f41804c8b53623bd411
6 changes: 5 additions & 1 deletion src/components/Footer.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
<script>
import Emoji from 'svelte-emoji'
</script>

<footer class="text-center mt-5 mb-2">
Hosted with <span>❤️&nbsp;</span> on <a href="//pages.github.com/">GitHub Pages</a>.
Hosted with <Emoji symbol="❤️ " label="love" /> on <a href="//pages.github.com/">GitHub Pages</a>.
</footer>

<style>
Expand Down
11 changes: 10 additions & 1 deletion src/components/Textarea.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<script>
import { saveAs } from 'file-saver'
import * as CleanCSS from 'clean-css'
import Emoji from 'svelte-emoji'

import CopySaveActions from './CopySaveActions.svelte'
import SavedSizeBadge from './SavedSizeBadge.svelte'

Expand Down Expand Up @@ -34,7 +36,14 @@

<textarea bind:value={input} class="form-control" rows="6" placeholder="enter your raw css here to optimize it..."></textarea>
<div class="row mt-2">
<button class="btn btn-primary d-inline" style="background-color: #27AAE1;" on:click={optimize}>optimize ➜</button>
<button
class="btn btn-primary d-inline"
style="background-color: #27AAE1;"
on:click={optimize}
>
optimize
<Emoji symbol="➜" />
</button>

<div id="result" class="position-relative ms-2 flex-grow-1 d-flex p-0 align-items-center" style="width: 0;">
<input class="form-control" type="text" disabled={optimizedInput === undefined} bind:value={optimizedInput}>
Expand Down