Skip to content

Commit 467009e

Browse files
committed
feat(unity-bootstrap-theme): added custom selector for input type submit
UDS-1915
1 parent 2feb907 commit 467009e

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,16 @@ form.uds-form {
6363
textarea:focus,
6464
select:focus {
6565
outline: none!important;
66-
box-shadow: $uds-color-base-white 0px 0px 0px 2px, $uds-color-base-gray-7 0px 0px 0px 4px !important;
66+
box-shadow: 0 0 0 1px $uds-color-base-gray-7 !important;
67+
border: 1px solid $uds-color-base-gray-7 !important;
6768
border-radius: none;
6869
}
6970

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+
7076
/* Radios and Checkboxes - For more flexible control, this is a departure
7177
from Bootstrap 4 custom Checkboxes and Radios as described in:
7278
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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export const ButtonColorsComponent = () => (
5151
</button>
5252
<hr />
5353
<form className="uds-form">
54-
<input class="btn-maroon btn btn-primary" type="submit" value="Send message"></input>
54+
<input className="btn-maroon btn btn-primary" type="submit" value="Send message"></input>
5555
</form>
5656
<hr />
5757
</div>

0 commit comments

Comments
 (0)