Skip to content

Commit bb9fff3

Browse files
committed
Add a label to the unframed button
Makes the button more visible and understandable at a glance.
1 parent 50d519a commit bb9fff3

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

src/components/unframed.html

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,13 @@
2626
height="24"
2727
viewBox="0 -960 960 960"
2828
width="24"
29-
aria-label="Go Unframed!"
29+
aria-hidden="true"
3030
>
3131
<path
3232
d="M120-120v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm160 640v-80h80v80h-80Zm0-320v-80h80v80h-80Zm0-320v-80h80v80h-80Zm160 640v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm160 640v-80h80v80h-80Zm0-320v-80h80v80h-80Zm0-320v-80h80v80h-80Zm160 640v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Z"
3333
/>
3434
</svg>
35+
<span>Go unframed</span>
3536
</button>
3637

3738
<style>
@@ -67,14 +68,17 @@
6768
display: flex;
6869
justify-content: center;
6970
align-items: center;
70-
padding: 0.5rem;
71-
border-radius: 50%;
71+
gap: 0.5rem;
72+
padding: 0.5rem 1rem;
73+
border-radius: 2rem;
7274
border: 0;
7375
position: absolute;
7476
right: 1rem;
7577
bottom: 1rem;
7678
background-color: #ea4335;
7779
box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
80+
color: white;
81+
font-weight: bold;
7882

7983
svg {
8084
fill: white;

0 commit comments

Comments
 (0)