Don't use <h1> in Uppy markup (#5355)

* everywhere - don't use `<h1>` in Uppy markup

* `/dev/Dashboard.js` - add defence against using heading tags
This commit is contained in:
Evgenia Karunus 2024-07-24 06:09:44 +05:00 committed by GitHub
parent 160cf16fdd
commit c0c126e210
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 13 additions and 6 deletions

View file

@ -12,9 +12,9 @@ export default (props: PermissionsScreenProps) => {
return (
<div className="uppy-Audio-permissons">
<div className="uppy-Audio-permissonsIcon">{icon()}</div>
<h1 className="uppy-Audio-title">
<div className="uppy-Audio-title">
{hasAudio ? i18n('allowAudioAccessTitle') : i18n('noAudioTitle')}
</h1>
</div>
<p>
{hasAudio ?
i18n('allowAudioAccessDescription')

View file

@ -15,9 +15,9 @@ export default function PermissionsScreen({
return (
<div className="uppy-Webcam-permissons">
<div className="uppy-Webcam-permissonsIcon">{icon()}</div>
<h1 className="uppy-Webcam-title">
<div className="uppy-Webcam-title">
{hasCamera ? i18n('allowAccessTitle') : i18n('noCameraTitle')}
</h1>
</div>
<p>
{hasCamera ?
i18n('allowAccessDescription')

View file

@ -22,6 +22,7 @@
margin: auto;
}
/* css to make sure that Dashboard's css overrides page css */
button,
input {
color: green;
@ -29,8 +30,6 @@
text-align: right;
border: 2px solid purple;
}
/* css to make sure that Dashboard's css overrides page css */
ul {
margin: 60px;
}
@ -40,6 +39,14 @@
a {
color: purple;
}
h1,
h2,
h3,
h4,
h5,
h6 {
color: green;
}
</style>
</head>