Bug 1068712 - email app: improved accessibility of the compose screen. #27364
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
<li class="cmp-attachment-item"> | ||
<span class="cmp-attachment-icon"></span> | ||
<span class="cmp-attachment-icon" role="presentation"></span> | ||
<span class="cmp-attachment-fileinfo"> | ||
<span dir="auto" class="cmp-attachment-filename"></span> | ||
<span class="cmp-attachment-filesize"></span> | ||
</span> | ||
<span class="cmp-attachment-remove"></span> | ||
<span class="cmp-attachment-remove" role="button" | ||
data-l10n-id="compose-attachment-remove"></span> | ||
</li> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<div class="cmp-peep-bubble peep-bubble" dir="auto"> | ||
<div class="cmp-peep-bubble peep-bubble" dir="auto" role="button"> | ||
<span class="cmp-peep-name"></span> | ||
<span class="cmp-peep-address collapsed"></span> | ||
</div> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
<section class="cmp-compose-header" role="region" data-statuscolor="default"> | ||
<header data-prop="headerNode"> | ||
<a data-event="click:onBack" href="#" class="cmp-back-btn"> | ||
<a role="button" data-event="click:onBack" href="#" class="cmp-back-btn" | ||
data-l10n-id="back-button"> | ||
<span class="icon icon-back">BacK</span> | ||
</a> | ||
<menu type="toolbar"> | ||
<a href="#" data-event="click:onAttachmentAdd" | ||
class="cmp-attachment-btn"> | ||
<a role="button" href="#" data-event="click:onAttachmentAdd" | ||
class="cmp-attachment-btn" data-l10n-id="compose-attachment-button"> | ||
<span class="icon icon-attachment">AttachmenT</span> | ||
</a> | ||
<a data-prop="sendButton" data-event="click:onSend" | ||
href="#" class="cmp-send-btn"> | ||
<a role="button" data-prop="sendButton" data-event="click:onSend" | ||
href="#" class="cmp-send-btn" data-l10n-id="compose-send-button"> | ||
<span class="icon icon-send">SenD</span> | ||
</a> | ||
</menu> | ||
|
@@ -21,9 +22,10 @@ | |
<div data-prop="addrBar" class="cmp-envelope-bar"> | ||
<div class="cmp-addr-bar"> | ||
<div data-event="click:onContainerClick" | ||
class="cmp-envelope-line cmp-combo"> | ||
class="cmp-envelope-line cmp-combo" | ||
role="group" data-l10n-id="to-group"> | ||
<span class="cmp-to-label cmp-addr-label" | ||
data-l10n-id="compose-to">tO:</span> | ||
data-l10n-id="compose-to" aria-hidden="true">tO:</span> | ||
<div class="cmp-to-container cmp-addr-container"> | ||
<div class="cmp-bubble-container"> | ||
<input data-prop="toNode" | ||
|
@@ -33,15 +35,18 @@ | |
</div> | ||
</div> | ||
<div data-event="click:onContactAdd" | ||
class="cmp-to-add cmp-contact-add"></div> | ||
class="cmp-to-add cmp-contact-add" | ||
role="button" | ||
data-l10n-id="compose-contact-add"></div> | ||
</div> | ||
<!-- XXX: spec calls for showing cc/bcc merged until selected, | ||
but there is also the case where replying itself might need | ||
to expand, so we are deferring that feature --> | ||
<div data-event="click:onContainerClick" | ||
class="cmp-envelope-line cmp-combo"> | ||
class="cmp-envelope-line cmp-combo" | ||
role="group" data-l10n-id="cc-group"> | ||
<span class="cmp-cc-label cmp-addr-label" | ||
data-l10n-id="compose-cc">cC:</span> | ||
data-l10n-id="compose-cc" aria-hidden="true">cC:</span> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same dir comment as above here. |
||
<div class="cmp-cc-container cmp-addr-container"> | ||
<div class="cmp-bubble-container"> | ||
<input data-prop="ccNode" | ||
|
@@ -51,12 +56,15 @@ | |
</div> | ||
</div> | ||
<div data-event="click:onContactAdd" | ||
class="cmp-cc-add cmp-contact-add"></div> | ||
class="cmp-cc-add cmp-contact-add" | ||
role="button" | ||
data-l10n-id="compose-contact-add"></div> | ||
</div> | ||
<div data-event="click:onContainerClick" | ||
class="cmp-envelope-line cmp-combo"> | ||
class="cmp-envelope-line cmp-combo" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just flagging this one too, for my own notes on review. |
||
role="group" data-l10n-id="bcc-group"> | ||
<span class="cmp-bcc-label cmp-addr-label" | ||
data-l10n-id="compose-bcc">BcC:</span> | ||
data-l10n-id="compose-bcc" aria-hidden="true">BcC:</span> | ||
<div class="cmp-bcc-container cmp-addr-container"> | ||
<div class="cmp-bubble-container"> | ||
<input data-prop="bccNode" | ||
|
@@ -66,19 +74,22 @@ | |
</div> | ||
</div> | ||
<div data-event="click:onContactAdd" | ||
class="cmp-bcc-add cmp-contact-add"></div> | ||
class="cmp-bcc-add cmp-contact-add" | ||
role="button" | ||
data-l10n-id="compose-contact-add"></div> | ||
</div> | ||
</div> | ||
<div class="cmp-envelope-line cmp-subject"> | ||
<span class="cmp-subject-label" | ||
data-l10n-id="compose-subject">SubjecT:</span> | ||
data-l10n-id="compose-subject" aria-hidden="true">SubjecT:</span> | ||
<input data-prop="subjectNode" | ||
dir="auto" | ||
class="cmp-subject-text" type="text" /> | ||
class="cmp-subject-text" type="text" data-l10n-id="subject" /> | ||
</div> | ||
<div data-prop="errorMessage" class="cmp-error-message collapsed"></div> | ||
<div data-prop="attachmentTotal" | ||
class="cmp-envelope-line cmp-attachment-total collapsed"> | ||
class="cmp-envelope-line cmp-attachment-total collapsed" | ||
aria-hidden="true"> | ||
<span data-prop="attachmentLabel" | ||
class="cmp-attachment-label cmp-addr-label" | ||
data-l10n-id="compose-attachments[zero]">AttachmentS:</span> | ||
|
@@ -87,10 +98,12 @@ | |
<ul data-prop="attachmentsContainer" class="cmp-attachment-container"> | ||
</ul> | ||
</div> | ||
<div data-prop="textBodyNode" class="cmp-body-text" contenteditable="true" role="textbox" aria-multiline="true"></div> | ||
<div data-prop="textBodyNode" class="cmp-body-text" contenteditable="true" role="textbox" aria-multiline="true" | ||
data-l10n-id="compose-text"></div> | ||
<div data-prop="htmlBodyContainer" | ||
data-event="click:_focusEditorWithCursorAtEnd" | ||
dir="auto" | ||
class="cmp-body-html"> | ||
class="cmp-body-html" | ||
data-l10n-id="message-body-container"> | ||
</div> | ||
</div> |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,8 @@ | |
.cmp-bubble-container { | ||
width: calc(100% - 1rem); | ||
float: left; | ||
display: inline-flex; | ||
flex-wrap: wrap; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The changes in here seem to cause an undesirable outcome for address entry. If the line is taken up by bubbles and there is just a little bit space left to enter the address, it does not break to a new line as the address gets longer. Picture here:
Not sure what to do about it yet though. Tried some quick things in dev tools. Ideally we could keep the older CSS styles as they are known to work, but when talking in IRC these were done so the screen reader could see the bubbles, is that correct? Or was it so it could see the input field? Maybe there is something else we could do here instead to get that to work and keep the line break behavior from before. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This was actually for the input field. I can see what i can do there with the old styles (but also see if something can be done with the above styles too) |
||
} | ||
|
||
html:-moz-dir(rtl) .cmp-bubble-container { | ||
|
@@ -31,18 +33,15 @@ html:-moz-dir(rtl) .cmp-bubble-container { | |
/* Make sure these styles take precedence over the base msg-peep-bubble styles | ||
by using both class names */ | ||
.cmp-peep-bubble.msg-peep-bubble { | ||
float: left; | ||
margin: 0.3rem 0.6rem; | ||
border: 0; | ||
border-radius: 1.4rem; | ||
font-size: 1.6rem; | ||
font-style: italic; | ||
color: #2c2c2c; | ||
background-color: white; | ||
} | ||
|
||
html:-moz-dir(rtl) .cmp-peep-bubble.msg-peep-bubble { | ||
float: right; | ||
flex-shrink: 0; | ||
flex-grow: 0; | ||
} | ||
|
||
.cmp-peep-bubble.msg-peep-bubble:active { | ||
|
@@ -75,21 +74,16 @@ input.cmp-addr-text, input.cmp-subject-text { | |
} | ||
|
||
input.cmp-addr-text, input.cmp-dot-text { | ||
float: left; | ||
width: 0.5rem; | ||
max-width: 100%; | ||
flex-grow: 1; | ||
flex-shrink: 1; | ||
width: 0; | ||
text-overflow: ellipsis; | ||
overflow: hidden; | ||
word-wrap: normal; | ||
white-space: nowrap; | ||
} | ||
|
||
html:-moz-dir(rtl) input.cmp-addr-text, input.cmp-dot-text { | ||
float: right; | ||
} | ||
|
||
input.cmp-subject-text { | ||
display: table-cell; | ||
font-size: 1.6rem; | ||
text-overflow: ellipsis; | ||
} | ||
|
@@ -250,6 +244,7 @@ html:-moz-dir(rtl) .cmp-attachment-filesize { | |
background: url("images/icons/actionicon_email_removeattachment.png") no-repeat scroll center / 2rem; | ||
width: 2rem; | ||
border: 0.4rem solid transparent; | ||
height: 100%; | ||
} | ||
|
||
.cmp-messages-sending p { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to the whatwg spec, dir does not have a default value, and dir is kept for some other elements, so I would prefer to keep this attribute in unless there is other information that indicates it should be removed.