Use semantically correct h2 in Create view as well
Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
This commit is contained in:
parent
529205385a
commit
fe27a630c4
2 changed files with 22 additions and 16 deletions
|
|
@ -44,20 +44,22 @@
|
|||
|
||||
<!-- Forms title & description-->
|
||||
<header>
|
||||
<label class="hidden-visually" for="form-title">{{ t('forms', 'Form title') }}</label>
|
||||
<input
|
||||
id="form-title"
|
||||
ref="title"
|
||||
v-model="form.title"
|
||||
class="form-title"
|
||||
:minlength="0"
|
||||
:maxlength="maxStringLengths.formTitle"
|
||||
:placeholder="t('forms', 'Form title')"
|
||||
:required="true"
|
||||
autofocus
|
||||
type="text"
|
||||
@click="selectIfUnchanged"
|
||||
@keyup="onTitleChange">
|
||||
<h2>
|
||||
<label class="hidden-visually" for="form-title">{{ t('forms', 'Form title') }}</label>
|
||||
<input
|
||||
id="form-title"
|
||||
ref="title"
|
||||
v-model="form.title"
|
||||
class="form-title"
|
||||
:minlength="0"
|
||||
:maxlength="maxStringLengths.formTitle"
|
||||
:placeholder="t('forms', 'Form title')"
|
||||
:required="true"
|
||||
autofocus
|
||||
type="text"
|
||||
@click="selectIfUnchanged"
|
||||
@keyup="onTitleChange">
|
||||
</h2>
|
||||
<label class="hidden-visually" for="form-desc">{{ t('forms', 'Description') }}</label>
|
||||
<textarea
|
||||
ref="description"
|
||||
|
|
@ -418,6 +420,10 @@ export default {
|
|||
margin-top: 44px;
|
||||
margin-bottom: 24px;
|
||||
|
||||
h2 {
|
||||
margin-bottom: 0; // because the input field has enough padding
|
||||
}
|
||||
|
||||
.form-title,
|
||||
.form-desc {
|
||||
width: 100%;
|
||||
|
|
@ -425,7 +431,7 @@ export default {
|
|||
border: none;
|
||||
}
|
||||
.form-title {
|
||||
font-size: 2em;
|
||||
font-size: 28px;
|
||||
font-weight: bold;
|
||||
color: var(--color-main-text);
|
||||
min-height: 36px;
|
||||
|
|
|
|||
|
|
@ -209,7 +209,7 @@ export default {
|
|||
border: none;
|
||||
}
|
||||
.form-title {
|
||||
font-size: 2em;
|
||||
font-size: 28px;
|
||||
font-weight: bold;
|
||||
color: var(--color-main-text);
|
||||
min-height: 36px;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue