provide message on how to escape Etherpad edit field

This commit is contained in:
KDSBrowne 2019-02-23 22:38:58 +00:00
parent 22a42aa572
commit 6dbb56fabb
4 changed files with 27 additions and 0 deletions

View File

@ -15,6 +15,10 @@ const intlMessages = defineMessages({
id: 'app.note.title', id: 'app.note.title',
description: 'Title for the shared notes', description: 'Title for the shared notes',
}, },
tipLabel: {
id: 'app.note.tipLabel',
description: 'Label for tip on how to escape iframe',
},
}); });
const propTypes = { const propTypes = {
@ -57,7 +61,11 @@ const Note = (props) => {
<iframe <iframe
title="etherpad" title="etherpad"
src={url} src={url}
aria-describedby="sharedNotesEscapeHint"
/> />
<span id="sharedNotesEscapeHint" className={styles.hint} aria-hidden>
{intl.formatMessage(intlMessages.tipLabel)}
</span>
</div> </div>
); );
}; };

View File

@ -61,6 +61,22 @@
} }
} }
.hint {
visibility: hidden;
position: absolute;
@media (pointer: none) {
visibility: visible;
position: relative;
color: var(--color-gray);
font-size: var(--font-size-small);
font-style: italic;
padding-top: var(--sm-padding-x);
padding-left: var(--lg-padding-y);
text-align: left;
}
}
iframe { iframe {
display: flex; display: flex;
flex-flow: column; flex-flow: column;
@ -70,4 +86,5 @@ iframe {
overflow-x: hidden; overflow-x: hidden;
overflow-y: auto; overflow-y: auto;
border-style: none; border-style: none;
border-bottom: 1px solid var(--color-gray-lightest);
} }

View File

@ -6,6 +6,7 @@
--color-gray-dark: #06172A; --color-gray-dark: #06172A;
--color-gray-light: #8B9AA8; --color-gray-light: #8B9AA8;
--color-gray-lighter: #a7b3bd; --color-gray-lighter: #a7b3bd;
--color-gray-lightest: #d4d9df;
--color-blue-light: #54a1f3; --color-blue-light: #54a1f3;
--color-blue-lighter: #92BCEA; --color-blue-lighter: #92BCEA;

View File

@ -21,6 +21,7 @@
"app.note.title": "Shared Notes", "app.note.title": "Shared Notes",
"app.note.label": "Note", "app.note.label": "Note",
"app.note.hideNoteLabel": "Hide note", "app.note.hideNoteLabel": "Hide note",
"app.note.tipLabel": "Press Esc to focus editor toolbar",
"app.userList.usersTitle": "Users", "app.userList.usersTitle": "Users",
"app.userList.participantsTitle": "Participants", "app.userList.participantsTitle": "Participants",
"app.userList.messagesTitle": "Messages", "app.userList.messagesTitle": "Messages",