Skip to content

Commit

Permalink
* form: add style to form-actions in form-grid.
Browse files Browse the repository at this point in the history
  • Loading branch information
catouse committed Jan 3, 2024
1 parent b6b3723 commit a5db02f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/form/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,10 @@
Hello, world!
</textarea>
</div>
<div class="form-actions">
<button type="submit" class="btn primary">提交</button>
<button type="submit" class="btn">取消</button>
</div>
</form>
```

Expand Down
4 changes: 4 additions & 0 deletions lib/form/src/style/form-grid.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,7 @@
.form-grid-col {
@apply -px-[--form-grid-gap-x-half];
}

.form-grid .form-actions {
@apply -w-full -justify-center -gap-6 -px-[--form-grid-gap-x-half] -py-[--form-grid-gap-y];
}

0 comments on commit a5db02f

Please sign in to comment.