Merge pull request #1605 from minorninth/fix_nsfw_checkbox_label

Associate NSFW label with its checkbox
This commit is contained in:
Jay Sitter 2023-06-26 01:41:37 -04:00 committed by GitHub
commit dbbec5d950
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -531,7 +531,7 @@ export class PostForm extends Component<PostFormProps, PostFormState> {
checked={this.state.form.nsfw} checked={this.state.form.nsfw}
onChange={linkEvent(this, handlePostNsfwChange)} onChange={linkEvent(this, handlePostNsfwChange)}
/> />
<label className="form-check-label"> <label className="form-check-label" htmlFor="post-nsfw">
{I18NextService.i18n.t("nsfw")} {I18NextService.i18n.t("nsfw")}
</label> </label>
</div> </div>