Skip to content

Commit

Permalink
Fixed background of buttons to make them visible on stage.
Browse files Browse the repository at this point in the history
  • Loading branch information
amyjko committed Jul 9, 2024
1 parent 22d7f34 commit 58f5c66
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Dates are in `YYYY-MM-DD` format and versions are in [semantic versioning](http:
### Fixed

- Added expressions control dependent on streams to expressions to reevaluate on reaction.
- Fixed background of buttons to make them visible on stage.

## 0.10.3 2024-07-07

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wordplay",
"version": "0.10.3",
"version": "0.10.4",
"scripts": {
"postinstall": "run-script-os",
"postinstall:default": "svelte-kit sync && cp .env.template .env",
Expand Down
11 changes: 5 additions & 6 deletions src/components/widgets/Button.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,14 @@
user-select: none;
padding: 0;
border: none;
background: none;
background: var(--wordplay-background);
border-radius: var(--wordplay-border-radius);
color: currentcolor;
cursor: pointer;
min-width: 1em;
width: fit-content;
height: fit-content;
min-height: 1em;
white-space: nowrap;
transition: transform calc(var(--animation-factor) * 200ms);
/* This allows command hints to be visible */
Expand All @@ -99,7 +101,8 @@
}
.padding {
padding: calc(var(--wordplay-spacing) / 2);
padding-left: calc(var(--wordplay-spacing) / 2);
padding-right: calc(var(--wordplay-spacing) / 2);
}
button.stretch {
Expand All @@ -115,18 +118,15 @@
button:focus {
background: var(--wordplay-focus-color);
border-radius: var(--wordplay-border-radius);
color: var(--wordplay-background);
fill: var(--wordplay-background);
}
button:hover:not(:focus)[aria-disabled='false'] {
background: var(--wordplay-alternating-color);
border-radius: var(--wordplay-border-radius);
}
:global(button:focus .token-view) {
border-radius: var(--wordplay-border-radius);
color: var(--wordplay-background);
}
Expand All @@ -136,7 +136,6 @@
.background {
background: var(--wordplay-alternating-color);
border-radius: var(--wordplay-border-radius);
padding: var(--wordplay-spacing);
border: var(--wordplay-border-width) solid var(--wordplay-border-color);
}
Expand Down

0 comments on commit 58f5c66

Please sign in to comment.