Compare commits

...

12 commits

Author SHA1 Message Date
lionel-rowe
ece1410125
Merge 4b2a24ba5e into 3b03f3a8f9 2025-06-18 08:21:35 +08:00
Marc Alexander
3b03f3a8f9
Merge pull request #6833 from iMattPro/ticket/17519
[ticket/17519] Revert cron url escape back to html_attr
2025-06-17 19:42:42 +02:00
Matt Friedman
e47ba9e81d
[ticket/17519] Fix tests
PHPBB-17519
2025-06-17 09:19:40 -07:00
Matt Friedman
8d016bafa2
[ticket/17519] Revert cron url escape back to html_attr
PHPBB-17519
2025-06-17 07:59:04 -07:00
Marc Alexander
35221f8ba5
Merge pull request #6826 from danieltj27/ticket/17522
[ticket/17522] Add event to member list to modify template vars
2025-06-17 14:04:28 +02:00
Marc Alexander
9219c03b36
Merge pull request #6831 from rxu/ticket/17527
[ticket/17527] Add Twig extensions existence check while registering
2025-06-17 11:30:52 +02:00
Daniel James
72c3745868 [ticket/17522] Change event name and update var type
PHPBB-17522
2025-06-17 07:18:41 +01:00
rxu
579b4a8287
[ticket/17527] Add Twig extensions existence check while registering
PHPBB-17527
2025-06-16 22:25:59 +07:00
Daniel James
b6c42b3768 [ticket/17522] Switch array syntax to short code
PHPBB-17522
2025-06-06 11:50:49 +01:00
Daniel James
da2733a7d8 [ticket/17522] Change since from beta to release candidate
PHPBB-17522
2025-06-06 11:03:10 +01:00
Daniel James
b8204d24f9 [ticket/17522] Add event to member list to modify template vars
PHPBB-17522
2025-06-05 22:18:51 +01:00
lionel-rowe
4b2a24ba5e [ticket/16983] Accessibility - fix elements with no focus style in ACP and Prosilver
PHPBB3-16983
2022-04-07 15:16:40 +01:00
8 changed files with 26 additions and 27 deletions

View file

@ -627,7 +627,6 @@ li {
font-size: 0.75em; font-size: 0.75em;
text-decoration: none; text-decoration: none;
cursor: inherit; cursor: inherit;
outline-style: none;
} }
@media only screen and (max-width: 700px), only screen and (max-device-width: 700px) @media only screen and (max-width: 700px), only screen and (max-device-width: 700px)
@ -1173,10 +1172,6 @@ optgroup, select {
color: #000; color: #000;
} }
select:focus {
outline-style: none;
}
optgroup { optgroup {
font-size: 1.00em; font-size: 1.00em;
font-weight: bold; font-weight: bold;
@ -1442,7 +1437,6 @@ input:focus, textarea:focus {
border: 1px solid #BC2A4D; border: 1px solid #BC2A4D;
background-color: #E9E9E2; background-color: #E9E9E2;
color: #BC2A4D; color: #BC2A4D;
outline-style: none;
} }
@media only screen and (max-width: 700px), only screen and (max-device-width: 700px) @media only screen and (max-width: 700px), only screen and (max-device-width: 700px)
@ -1592,11 +1586,6 @@ input.disabled {
color: #666666; color: #666666;
} }
/* Focus states */
input.button1:focus, input.button2:focus {
outline-style: none;
}
/* jQuery popups /* jQuery popups
---------------------------------------- */ ---------------------------------------- */
.phpbb_alert { .phpbb_alert {

View file

@ -1812,6 +1812,18 @@ switch ($mode)
$memberrow = array_merge($memberrow, $cp_row['row']); $memberrow = array_merge($memberrow, $cp_row['row']);
} }
/**
* Modify the memberrow data before template variables are assigned.
*
* @event core.memberlist_modify_memberrow
* @var int user_id The current user ID.
* @var array row Array of raw user data.
* @var array memberrow Array of member template variables.
* @since 3.3.16-RC1
*/
$vars = ['user_id', 'row', 'memberrow'];
extract($phpbb_dispatcher->trigger_event('core.memberlist_modify_memberrow', compact($vars)));
$template->assign_block_vars('memberrow', $memberrow); $template->assign_block_vars('memberrow', $memberrow);
if (isset($cp_row['blockrow']) && count($cp_row['blockrow'])) if (isset($cp_row['blockrow']) && count($cp_row['blockrow']))

View file

@ -99,7 +99,10 @@ class twig extends \phpbb\template\base
foreach ($extensions as $extension) foreach ($extensions as $extension)
{ {
$this->twig->addExtension($extension); if (!$this->twig->hasExtension(get_class($extension)))
{
$this->twig->addExtension($extension);
}
} }
// Add admin namespace // Add admin namespace

View file

@ -4,4 +4,4 @@
to hide visually and `aria-hidden="true"` to hide from screen-readers; using to hide visually and `aria-hidden="true"` to hide from screen-readers; using
`hidden` or `display: none` would prevent the task from running. `hidden` or `display: none` would prevent the task from running.
#} #}
<img class="sr-only" aria-hidden="true" src="{{ CRON_TASK_URL|e('url') }}" width="1" height="1" alt=""> <img class="sr-only" aria-hidden="true" src="{{ CRON_TASK_URL|e('html_attr') }}" width="1" height="1" alt="">

View file

@ -112,3 +112,11 @@ ul {
abbr[title] { abbr[title] {
text-decoration: none; text-decoration: none;
} }
/**
* Fixes accessibility issue introduced by `normalize.css` by re-adding outline
* to elements covered by the mouse when they are navigated into via keyboard
*/
a:hover {
outline: revert;
}

View file

@ -25,7 +25,6 @@
.button:focus, .button:focus,
.button:hover { .button:hover {
text-decoration: none; text-decoration: none;
outline: none;
} }
.caret { .caret {

View file

@ -27,10 +27,6 @@ select {
font-size: 1em; font-size: 1em;
} }
select:focus {
outline-style: none;
}
option { option {
padding-right: 1em; padding-right: 1em;
} }
@ -268,8 +264,6 @@ fieldset.submit-buttons input {
max-width: 100%; max-width: 100%;
font-size: 1.2em; font-size: 1.2em;
resize: vertical; resize: vertical;
outline: 3px dashed transparent;
outline-offset: -4px;
-webkit-transition: all .5s ease, height 1ms linear; -webkit-transition: all .5s ease, height 1ms linear;
-moz-transition: all .5s ease, height 1ms linear; -moz-transition: all .5s ease, height 1ms linear;
-ms-transition: all .5s ease, height 1ms linear; -ms-transition: all .5s ease, height 1ms linear;
@ -296,7 +290,6 @@ fieldset.submit-buttons input {
.inputbox:hover, .inputbox:focus { .inputbox:hover, .inputbox:focus {
border: 1px solid transparent; border: 1px solid transparent;
outline-style: none;
} }
input.inputbox { width: 85%; } input.inputbox { width: 85%; }
@ -383,11 +376,6 @@ input.disabled {
font-weight: normal; font-weight: normal;
} }
/* Focus states */
input.button1:focus, input.button2:focus, input.button3:focus {
outline-style: none;
}
/* Topic and forum Search */ /* Topic and forum Search */
.search-box { .search-box {
float: left; float: left;

View file

@ -67,7 +67,7 @@ class phpbb_cron_wrapper_test extends phpbb_template_template_test_case
$this->template $this->template
); );
$this->assertEquals('<img class="sr-only" aria-hidden="true" src="app.php%2Fcron%2Ffoo%3Ff%3D5" width="1" height="1" alt="">', str_replace(["\n", "\t"], '', $this->wrapper->get_html_tag())); $this->assertEquals('<img class="sr-only" aria-hidden="true" src="app.php&#x2F;cron&#x2F;foo&#x3F;f&#x3D;5" width="1" height="1" alt="">', str_replace(["\n", "\t"], '', $this->wrapper->get_html_tag()));
} }
public function test_is_parametrized_false() public function test_is_parametrized_false()