Skip to content

Commit a8556fb

Browse files
Merge pull request #1425 from ASU/UDS-1915
feat(unity-bootstrap-theme): added style and example for input type submit
2 parents bd58628 + 467009e commit a8556fb

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

packages/unity-bootstrap-theme/src/scss/extends/_form-fields.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,11 @@ form.uds-form {
6868
border-radius: none;
6969
}
7070

71+
input[type="submit"]:focus {
72+
box-shadow: $uds-color-base-white 0 0 0 2px, $uds-color-base-gray-7 0px 0px 0px 4px !important;
73+
border: 0 !important;
74+
}
75+
7176
/* Radios and Checkboxes - For more flexible control, this is a departure
7277
from Bootstrap 4 custom Checkboxes and Radios as described in:
7378
https://getbootstrap.com/docs/4.0/components/forms/#checkboxes-and-radios-1

packages/unity-bootstrap-theme/stories/atoms/buttons/buttons.examples.stories.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ export const ButtonColorsComponent = () => (
4949
<button type="button" className="btn btn-dark">
5050
Dark
5151
</button>
52+
<hr />
53+
<form className="uds-form">
54+
<input className="btn-maroon btn btn-primary" type="submit" value="Send message"></input>
55+
</form>
56+
<hr />
5257
</div>
5358
);
5459

0 commit comments

Comments
 (0)