mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-17 16:50:22 +00:00
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:
parent
160cf16fdd
commit
c0c126e210
3 changed files with 13 additions and 6 deletions
|
|
@ -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')
|
||||
|
|
|
|||
|
|
@ -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')
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue