Skip to content

Commit

Permalink
Merge pull request #3654 from sg00dwin/required-icon
Browse files Browse the repository at this point in the history
Add required class to form <h3> heading that contains, at least, 1 or more required fields
  • Loading branch information
openshift-merge-robot committed Dec 6, 2019
2 parents 65640ed + ee10bdc commit b689389
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ export class AddRequestHeaderPage extends PromiseComponent<{}, AddRequestHeaderP
</p>
<IDPNameInput value={name} onChange={this.nameChanged} />
<div className="co-form-section__separator" />
<h3>URLs</h3>
<h3 className="co-required">URLs</h3>
<p className="co-m-pane__explanation">At least one URL must be provided.</p>
<div className="form-group">
<label className="control-label" htmlFor="challenge-url">
Expand Down
14 changes: 10 additions & 4 deletions frontend/public/style/_forms.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,16 @@
flex-flow: row-reverse;
}

.co-required:after {
color: $color-pf-red-200;
content: '*';
padding-left: 3px;
.co-required {
position: relative;
&:after {
color: $color-pf-red-200;
content: '*';
font-size: $font-size-base;
padding-left: 3px;
position: absolute;
top: 0;
}
}

.co-form-section__label {
Expand Down

0 comments on commit b689389

Please sign in to comment.