File tree Expand file tree Collapse file tree 4 files changed +13
-14
lines changed
api/resources/templates/shared Expand file tree Collapse file tree 4 files changed +13
-14
lines changed Original file line number Diff line number Diff line change 11< div class ="topbar ">
22 < div class ="topbar-left ">
33 < div class ="home-link ">
4- < a href ="https://beta.ensembl.org/ ">
4+ < a href ="https://beta.ensembl.org/ " aria-label =" Ensembl home page " >
55 {% include "shared/_home_icon.html" %}
66 </ a >
77 </ div >
Original file line number Diff line number Diff line change 1616 < div class ="genome-detail-container "
1717 data-genome-browser-url ="{{ item.genome_browser_url }} "
1818 data-entity-viewer-url ="{{ item.entity_viewer_url }} ">
19- < a href ="{{ item.entity_viewer_url }} " class ="genome-detail genome-detail-tooltip " aria-label =" Show tooltip " >
19+ < a href ="{{ item.entity_viewer_url }} " class ="genome-detail genome-detail-tooltip ">
2020 {% if item.common_name %}
2121 {{ item.common_name }},
2222 {% endif %}
4444 < div id ="tooltip " style ="display:none; position:absolute; " role ="tooltip " aria-hidden ="true ">
4545 < div class ="tooltip-content ">
4646 < span class ="tooltip-content-title "> View in</ span >
47- < a id ="genome-browser-link " href ="# " aria-label ="Genome Browser link ">
47+ < a id ="genome-browser-link " href ="# " aria-label ="Genome Browser ">
4848 {% include "shared/_genome_browser_icon.html" %}
4949 </ a >
50- < a id ="entity-viewer-link " href ="# " aria-label ="Entity Viewer link ">
50+ < a id ="entity-viewer-link " href ="# " aria-label ="Entity Viewer ">
5151 {% include "shared/_entity_viewer_icon.html" %}
5252 </ a >
5353 </ div >
Original file line number Diff line number Diff line change 11: root {
22 --standard-gutter : 30px ;
33 --global-padding-left : calc (var (--standard-gutter ) * 4 );
4- --color-light- blue : # 0099ff ;
4+ --color-blue : # 0099ff ;
55 --font-weight-light : 300 ;
66 --color-medium-dark-grey : # 9aa7b1 ;
77 --color-red : # d90000 ;
6060}
6161
6262.copyright a {
63- color : var (--color-light- blue );
63+ color : var (--color-blue );
6464 text-decoration : none;
6565}
6666
9191.id-redirect-content {
9292 margin-top : 30px ;
9393 text-align : center;
94- width : 100% ;
9594}
9695
9796.redirect-text {
@@ -110,12 +109,12 @@ body {
110109
111110.footer-link a {
112111 font-size : 12px ;
113- color : var (--color-light- blue );
112+ color : var (--color-blue );
114113 text-decoration : none;
115114}
116115
117116.link {
118- color : var (--color-light- blue );
117+ color : var (--color-blue );
119118 text-decoration : none;
120119 font-size : 13px ;
121120}
@@ -204,7 +203,7 @@ body {
204203.genome-detail {
205204 font-size : 13px ;
206205 text-decoration : none;
207- color : var (--color-light- blue );
206+ color : var (--color-blue );
208207}
209208
210209.genome-detail-margin-left {
@@ -244,7 +243,7 @@ body {
244243
245244# genome-browser-link ,
246245# entity-viewer-link {
247- background-color : var (--color-light- blue );
246+ background-color : var (--color-blue );
248247 padding : 2px 4px ;
249248 margin-left : 20px ;
250249 display : inline-block;
Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ function closeTooltip() {
22 const tooltip = document . getElementById ( 'tooltip' ) ;
33 if ( tooltip ) {
44 tooltip . style . display = 'none' ;
5- tooltip . setAttribute ( 'aria-hidden' , 'true' ) ;
65 }
76}
87
@@ -14,10 +13,10 @@ function showTooltip(el) {
1413 const entityViewerLink = document . getElementById ( 'entity-viewer-link' ) ;
1514
1615 if ( genomeBrowserLink ) {
17- genomeBrowserLink . href = el . dataset . genomeBrowserUrl || '#' ;
16+ genomeBrowserLink . href = el . dataset . genomeBrowserUrl ;
1817 }
1918 if ( entityViewerLink ) {
20- entityViewerLink . href = el . dataset . entityViewerUrl || '#' ;
19+ entityViewerLink . href = el . dataset . entityViewerUrl ;
2120 }
2221
2322 const target = el . querySelector ( '.genome-detail-tooltip' ) ;
@@ -28,6 +27,7 @@ function showTooltip(el) {
2827 const rect = target . getBoundingClientRect ( ) ;
2928 tooltip . style . top = ( rect . top - 15 + window . scrollY ) + 'px' ;
3029 tooltip . style . left = ( rect . right + 10 + window . scrollX ) + 'px' ;
30+ genomeBrowserLink . focus ( ) ;
3131}
3232
3333document . querySelectorAll ( '.genome-detail-container' ) . forEach ( function ( el ) {
You can’t perform that action at this time.
0 commit comments