Skip to content

Commit

Permalink
Added css
Browse files Browse the repository at this point in the history
  • Loading branch information
grafitto committed Feb 11, 2022
1 parent a7d049b commit c86bfb3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion app/react/App/scss/elements/_controls.scss
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@
box-shadow: none;
}

input[type=number].form-control {
input[type='number'].form-control {
&::-webkit-inner-spin-button,
&::-webkit-outer-spin-button {
margin: 0;
Expand Down Expand Up @@ -267,6 +267,10 @@ input[type=number].form-control {
.form-control {
border-color: $c-danger;
}
.error-message {
color: $c-danger;
}

.error {
display: block;
position: absolute;
Expand Down
2 changes: 1 addition & 1 deletion app/react/Settings/components/CollectionSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ const CollectionSettings = ({
<input type="text" className="form-control" name="home_page" ref={register} />
</div>
<div className="has-error">
{errors.home_page && <div style={{ color: '#D9534F' }}>Invalid home page url</div>}
{errors.home_page && <div className="error-message">Invalid home page url</div>}
</div>
</ToggleChildren>
</SettingsFormElement>
Expand Down

0 comments on commit c86bfb3

Please sign in to comment.