Skip to content

Commit

Permalink
Merge branch 'feat/vadc_sprint21' into fix/vadc-1422
Browse files Browse the repository at this point in the history
  • Loading branch information
tianj7 committed Oct 30, 2024
2 parents cd87c5e + 6112f50 commit 1ce9903
Show file tree
Hide file tree
Showing 10 changed files with 75 additions and 57 deletions.
1 change: 1 addition & 0 deletions src/Analysis/Analysis.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import AppCard from './AppCard';
import TeamProjectHeader from './SharedUtils/TeamProject/TeamProjectHeader/TeamProjectHeader';
import CheckForTeamProjectApplication from './SharedUtils/TeamProject/Utils/CheckForTeamProjectApplication';
import './Analysis.less';
import './SharedUtils/AccessibilityUtils/AccessibilityCSS/Accessibility.css';

class Analysis extends React.Component {
openApp = (app) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ const JobInputModal = ({

return (
<Modal
className='gwas-modal'
okText='Submit'
cancelText='Back'
open={open}
Expand Down
1 change: 0 additions & 1 deletion src/Analysis/GWASApp/GWASContainer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import DismissibleMessagesList from './Components/DismissibleMessagesList/Dismis
import MakeFullscreenButton from './Components/MakeFullscreenButton/MakeFullscreenButton';
import InitializeCurrentState from './Utils/StateManagement/InitializeCurrentState';
import './GWASApp.css';
import '../SharedUtils/AccessibilityUtils/Accessibility.css';
import WorkflowLimitsDashboard from '../SharedUtils/WorkflowLimitsDashboard/WorkflowLimitsDashboard';

const GWASContainer = () => {
Expand Down
49 changes: 0 additions & 49 deletions src/Analysis/SharedUtils/AccessibilityUtils/Accessibility.css

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/* App-specific styles */

@import "AccessibilityTeams.css";
@import "AccessibilityGWAS.css";

/* Global styles */

:root {
--focus-outline-color: #007bff; /* Bright Blue */
}

.screen-reader-only {
position: absolute;
width: 1px;
height: 1px;
margin: -1px;
padding: 0;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}

.ant-modal-content button:focus {
outline: 1px dashed var(--focus-outline-color);
outline-offset: 1px;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
/* GWAS App */

.GWASUI-navBtn:not([disabled]) {
background: #194C90;
border-color: #194C90;
}

.GWASUI-navBtn:not([disabled]):hover,
.GWASUI-navBtn:not([disabled]):focus {
background: #2466AC;
border-color: #2466AC;
}

.gwas-modal .ant-btn-primary:not([disabled]) {
background: #194C90;
border-color: #194C90;
}

.gwas-modal .ant-btn-primary:not([disabled]):hover,
.gwas-modal .ant-btn-primary:not([disabled]):focus {
background: #2466AC;
border-color: #2466AC;
}

.gwas-modal .ant-btn-default {
color: #194C90;
border-color: #194C90;
}

.gwas-modal .ant-btn-default:hover,
.gwas-modal .ant-btn-default:focus {
color: #2466AC;
border-color: #2466AC;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/* VADC Apps - Team Selection */

.team-project-modal .ant-btn-primary:not([disabled]) {
background: #194C90;
border-color: #194C90;
}

.team-project-modal .ant-btn-primary:not([disabled]):hover,
.team-project-modal .ant-btn-primary:not([disabled]):focus {
background: #2466AC;
border-color: #2466AC;
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { Button, Modal, Spin } from 'antd';
import LoadingErrorMessage from '../../LoadingErrorMessage/LoadingErrorMessage';
import TeamsDropdown from './TeamsDropdown/TeamsDropdown';
import './TeamProjectModal.css';
import '../../AccessibilityUtils/Accessibility.css';

const TeamProjectModal = ({
isModalOpen,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,3 @@
.team-project-modal .teams-dropdown select:hover {
border-color: #40a9ff;
}

.team-project-modal .teams-dropdown select.no-selection {
color: #bfbfbf;
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React from 'react';
import PropTypes from 'prop-types';
import './TeamsDropdown.css';
import '../../../AccessibilityUtils/Accessibility.css';

const TeamsDropdown = ({
teams,
Expand Down Expand Up @@ -29,7 +28,6 @@ const TeamsDropdown = ({
aria-labelledby='team-select-label'
value={selectedValue}
onChange={handleChange}
className={selectedTeamProject === null ? 'no-selection' : ''}
>
{selectedTeamProject === null && (
<option value='placeholder' disabled>
Expand Down

0 comments on commit 1ce9903

Please sign in to comment.