Skip to content

Commit

Permalink
fix: show form buttons correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
rienheuver committed May 14, 2024
1 parent b4b1263 commit c99fda6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions docs/src/usage/buttons.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ <h2>Buttons</h2>
<button class="material-icons discrete">close</button>
<code></code>

Form button
<form>
<input type="button" value="Submit" />
</form>
<code></code>

Button group
<div class="button-group">
<button class="outline">One</button>
Expand Down
2 changes: 1 addition & 1 deletion src/components/buttons.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
:where(button, .button) {
:where(button, .button, input[type="button"]) {
--button-color: var(--brand);

position: relative;
Expand Down
2 changes: 1 addition & 1 deletion src/components/inputs.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
:where(input:not([type="range"])) {
:where(input:not([type="range"]:not[type="button"])) {
background-color: var(--surface-0);
box-shadow: var(--shadow-2), 0 0 1px 1px var(--surface-3);
padding-inline: var(--size-relative-3);
Expand Down

0 comments on commit c99fda6

Please sign in to comment.