[go: up one dir, main page]

Skip to content

Commit

Permalink
fix: button styles & simplyfy copy
Browse files Browse the repository at this point in the history
  • Loading branch information
zettca committed Aug 28, 2023
1 parent dc5ff44 commit 4be80b1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
7 changes: 4 additions & 3 deletions src/App.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@

.main {
display: flex;
flex-direction: row;
flex-wrap: wrap;
flex-flow: row wrap;
align-items: center;
align-content: center;
justify-content: center;
Expand All @@ -24,14 +23,16 @@
display: flex;
flex-direction: column;
align-self: flex-start;
gap: 0.6rem;
}

.case button {
color: inherit;
font: inherit;
border: none;
user-select: text;
outline: 1px solid currentColor;
outline-width: 1px;
outline-style: auto;
padding: 2px;
background-color: transparent;
}
Expand Down
9 changes: 2 additions & 7 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,8 @@ const Case = (props: { label: string; value: string }) => {

return (
<div class={styles.case}>
<h3>{props.label}</h3>
<button
onClick={handleCopy}
onKeyDown={(event) => {
if (event.key === "Enter") handleCopy();
}}
>
<strong>{props.label}</strong>
<button onClick={handleCopy}>
<code>{props.value}</code>
</button>
</div>
Expand Down

0 comments on commit 4be80b1

Please sign in to comment.