Skip to content

Commit

Permalink
fix accessibility
Browse files Browse the repository at this point in the history
  • Loading branch information
kygoffe committed Aug 7, 2024
1 parent 78bacda commit a5f3270
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 45 deletions.
4 changes: 2 additions & 2 deletions R/nhs_footer.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#'
#' @examples
#' nhs_footer()
nhs_footer <- function(a11y_statement_url = "#",
nhs_footer <- function(a11y_statement_url = "https://www.nhsbsa.nhs.uk/accessibility-statement-nhsbsa-gender-pay-gap-website",

Check warning on line 15 in R/nhs_footer.R

View workflow job for this annotation

GitHub Actions / lint

file=R/nhs_footer.R,line=15,col=101,[line_length_linter] Lines should not be more than 100 characters. This line is 126 characters.
email = "[email protected]",
github_url = "https://github.com/nhsbsa-data-analytics/int644genderpaygap") {
tagList(
Expand Down Expand Up @@ -40,7 +40,7 @@ nhs_footer <- function(a11y_statement_url = "#",
a(
class = "nhsuk-footer__list-item-link",
style = "text-decoration: underline;",
href = paste0("mailto:@", email),
href = paste0("mailto:", email),
target = "_blank",
"Contact us"
)
Expand Down
2 changes: 1 addition & 1 deletion inst/app/www/assets/markdown/05_action.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

The NHSBSA is committed to addressing our gender pay gap and achieving equal representation between men and women across all pay bands. We are undertaking a wide range of actions, many of which are aimed at increasing the representation of women in senior roles within our organisation. During the last year significant progress has been made in the following areas:

- Embedding our <a href="https://www.nhsbsa.nhs.uk/our-policies/diversity-and-inclusion" target="_blank">**Diversity and Inclusion Strategy 2022-25**</a> which includes key objectives specifically to address the under-representation of women in our leadership community.
- Embedding our <a href="https://www.nhsbsa.nhs.uk/sites/default/files/2022-07/Diversity%20and%20Inclusion%20Strategy%20%281%29.pdf" target="_blank">**Diversity and Inclusion Strategy 2022-25 (PDF format)**</a> which includes key objectives specifically to address the under-representation of women in our leadership community.

- We have introduced mandatory gender diverse recruitment panels for all recruitment processes, requiring all shortlisting and interview panels to have a gender balance. This follows a successful pilot where it was demonstrated that diverse recruitment panels reduce recruitment bias towards male applicants. This contributed to improving the proportion of successful female candidates by over 10%.

Expand Down
60 changes: 19 additions & 41 deletions inst/app/www/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,47 +23,6 @@ html {
line-height: 1.2;
}

/* Scrolly stuff */


/* Fix accessibility issue with scrolly contrast (increase gap between sections
and prevent them fading in / out) */
.scrolly-section {
margin-bottom: 30vh;
opacity: 1;
margin-right: 30px;
}

.scrolly-sections .scrolly-section:last-child {
margin-bottom: 20vh;
}

.scrolly-graph {
margin-left: 0px;
}

/* Tippy stuff */

.tippy {
text-decoration: underline;
}

.tippy-content{
background: #f0f4f5 none repeat scroll 0% 0%;
text-align: left;
font-size: 12pt;
}

.tippy-tooltip{
color: #212b32;
background-color: #f0f4f5 !important;
border: 1px solid #425563;
border-radius: 0;
}

.tippy-backdrop {
background-color: #f0f4f5;
}

/* Custom classes to help with accessibility */

Expand Down Expand Up @@ -115,3 +74,22 @@ and prevent them fading in / out) */
.navbar-default .navbar-nav>li>a {
color: #717465;
}

/* Accessibility PickerInput contrast issue */

.bootstrap-select .dropdown-toggle .filter-option {
opacity: 1 !important;
color: #425563 !important;
}

/* Adjusting opacity and color of the dropdown menu */
.bootstrap-select .dropdown-menu {
opacity: 1 !important;
color: #425563 !important;
}

/* Override opacity for the specific select element */
#content_main {
opacity: 1 !important;
color: #425563 !important;
}
3 changes: 2 additions & 1 deletion man/nhs_footer.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a5f3270

Please sign in to comment.