From 44685eb47af02e5e86e29b378f920f8115bd338e Mon Sep 17 00:00:00 2001 From: Cole DeMan Date: Fri, 23 Apr 2021 11:05:28 -0300 Subject: [PATCH 1/5] various fixes --- alouette.py | 3 --- assets/compiled.css | 2 -- assets/scripts.js | 19 +++++++++++++++++++ 3 files changed, 19 insertions(+), 5 deletions(-) diff --git a/alouette.py b/alouette.py index cb108c5..b948279 100644 --- a/alouette.py +++ b/alouette.py @@ -567,9 +567,6 @@ def build_filtering(): # marks=year_dict # ), html.Div([ - html.Label( - htmlFor='date_picker_range' - ), dcc.DatePickerRange( id='date_picker_range', min_date_allowed=dt.datetime(1962, 9, 29), diff --git a/assets/compiled.css b/assets/compiled.css index 329d6ae..3ab1525 100644 --- a/assets/compiled.css +++ b/assets/compiled.css @@ -218,8 +218,6 @@ input[type="button"] { font-size: 13px; } - -} .button:hover, button:hover, input[type="submit"]:hover, diff --git a/assets/scripts.js b/assets/scripts.js index d6daa19..6b42c0f 100644 --- a/assets/scripts.js +++ b/assets/scripts.js @@ -3,6 +3,14 @@ const expected_canvas_count = 8; $(document).ready(function(){ var canvas_check = setInterval(checkForCanvases, 3000); + var css_fixer = setInterval(removeBaddCss, 3500); + + var ariaFixes = setInterval(function(){ + var dropdowns = $('.Select-input input'); + dropdowns.removeAttr('aria-owns'); + $('.Select-input').attr('role', 'option'); + }, 3000); + // Callback function to execute when mutations are observed const callback = function(mutationsList, observer) { // Use traditional 'for loops' for IE 11 @@ -17,6 +25,17 @@ $(document).ready(function(){ } }; + function removeBaddCss(){ + $("head").find('style').each(function () { + // console.log('removing css'); + html = $(this).html(); + if(html.match(/border-color:\s*transparent\s*inherit\s*transparent\s*transparent\s*!important/gm)){ + $(this).html( html.replace(/border-color:\s*transparent\s*inherit\s*transparent\s*transparent\s*!important/gm,"") ); + } + }); + + } + // Create an observer instance linked to the callback function const observer = new MutationObserver(callback); From 2f6316befaae7800437b1d60b4a3c221baff7983 Mon Sep 17 00:00:00 2001 From: Cole DeMan Date: Fri, 23 Apr 2021 13:27:20 -0300 Subject: [PATCH 2/5] header fixes --- header_footer.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/header_footer.py b/header_footer.py index 8a6bf75..04366d6 100644 --- a/header_footer.py +++ b/header_footer.py @@ -448,6 +448,14 @@ ''' gc_header_en = ''' + ''' gc_header_en_old =''' @@ -1012,6 +1021,12 @@ ''' gc_header_fr = ''' + ''' gc_header_fr_old = ''' From 102598a2b62fced3b5da759beae2cfa4a8a14632 Mon Sep 17 00:00:00 2001 From: Cole DeMan Date: Fri, 23 Apr 2021 13:46:25 -0300 Subject: [PATCH 3/5] header fixes --- header_footer.py | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/header_footer.py b/header_footer.py index 04366d6..8726ba6 100644 --- a/header_footer.py +++ b/header_footer.py @@ -451,9 +451,9 @@