File tree 1 file changed +5
-2
lines changed
src/cusy/cms/browser/overrides
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 2
2
tal : define =" banner view/find_banner|nothing"
3
3
i18n : domain =" collective.behavior.banner" >
4
4
5
- <aside id =" portal-banner" class =" banner" aria-labelledby = " portal-banner-title " aria-describedby =" portal-banner-description "
5
+ <aside id =" portal-banner" class =" banner" aria-label = " " aria-labelledby = " " aria-describedby =" "
6
6
tal : condition =" python: banner"
7
7
tal : define =" has_image python:banner and 'banner_image' in banner;
8
8
has_url python:banner and 'banner_url' in banner;
9
9
has_fontcolor python:banner and 'banner_fontcolor' in banner;
10
10
fontcolor python:has_fontcolor and banner['banner_fontcolor'] + ' !important' or '#4d4d4d';
11
11
has_backgroundcolor python:banner and 'banner_backgroundcolor' in banner;
12
12
backgroundcolor python:has_backgroundcolor and 'background:' + banner['banner_backgroundcolor'] + ' !important' or ''"
13
- tal : attributes =" style backgroundcolor;" >
13
+ tal : attributes =" style backgroundcolor;
14
+ aria-label python: banner.get('banner_title') and None or context.title;
15
+ aria-labelledby python: banner.get('banner_title') and 'portal-banner-title' or None;
16
+ aria-describedby python: banner.get('banner_description') and 'portal-banner-description' or None;" >
14
17
<div class =" container" >
15
18
<div class =" banner__container"
16
19
tal : attributes =" class python:'banner__container' if has_image else 'banner__container banner__container--no-image'" >
You can’t perform that action at this time.
0 commit comments