mirror of
https://we.phorge.it/source/phorge.git
synced 2025-01-22 20:51:10 +01:00
Fix specifications of some "Visual Only" elements
Summary: See PHI823. These got "visual-only" but should acutally get "aural => false" to pick up "aria-hidden". Test Plan: Viewed page source, saw both "visual-only" and "aria-hidden". Reviewers: amckinley Reviewed By: amckinley Differential Revision: https://secure.phabricator.com/D20157
This commit is contained in:
parent
9a9fa8bed2
commit
88d5233b77
3 changed files with 9 additions and 6 deletions
|
@ -254,11 +254,12 @@ final class PhabricatorApplicationTransactionCommentView
|
|||
|
||||
require_celerity_resource('phui-comment-form-css');
|
||||
$image_uri = $viewer->getProfileImageURI();
|
||||
$image = phutil_tag(
|
||||
$image = javelin_tag(
|
||||
'div',
|
||||
array(
|
||||
'style' => 'background-image: url('.$image_uri.')',
|
||||
'class' => 'phui-comment-image visual-only',
|
||||
'class' => 'phui-comment-image',
|
||||
'aural' => false,
|
||||
));
|
||||
$wedge = phutil_tag(
|
||||
'div',
|
||||
|
|
|
@ -52,12 +52,13 @@ final class PHUIHeadThingView extends AphrontTagView {
|
|||
|
||||
protected function getTagContent() {
|
||||
|
||||
$image = phutil_tag(
|
||||
$image = javelin_tag(
|
||||
'a',
|
||||
array(
|
||||
'class' => 'phui-head-thing-image visual-only',
|
||||
'class' => 'phui-head-thing-image',
|
||||
'style' => 'background-image: url('.$this->image.');',
|
||||
'href' => $this->imageHref,
|
||||
'aural' => false,
|
||||
));
|
||||
|
||||
if ($this->image) {
|
||||
|
|
|
@ -420,12 +420,13 @@ final class PHUITimelineEventView extends AphrontView {
|
|||
$image = null;
|
||||
$badges = null;
|
||||
if ($image_uri) {
|
||||
$image = phutil_tag(
|
||||
$image = javelin_tag(
|
||||
($this->userHandle->getURI()) ? 'a' : 'div',
|
||||
array(
|
||||
'style' => 'background-image: url('.$image_uri.')',
|
||||
'class' => 'phui-timeline-image visual-only',
|
||||
'class' => 'phui-timeline-image',
|
||||
'href' => $this->userHandle->getURI(),
|
||||
'aural' => false,
|
||||
),
|
||||
'');
|
||||
if ($this->badges && $show_badges) {
|
||||
|
|
Loading…
Reference in a new issue