Skip to content

Commit

Permalink
improve a11y
Browse files Browse the repository at this point in the history
  • Loading branch information
kami2016 committed Jul 5, 2024
1 parent 3ca83a8 commit 0e627b9
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 22 deletions.
10 changes: 5 additions & 5 deletions dist/assets/index.648b68d5.js → dist/assets/index.80643fa4.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<title>Buero Vatter</title>


<script type="module" crossorigin src="/bv2024_frontend/assets/index.648b68d5.js"></script>
<script type="module" crossorigin src="/bv2024_frontend/assets/index.80643fa4.js"></script>
<link rel="stylesheet" href="/bv2024_frontend/assets/index.9b4ebce4.css">
</head>
<body>
Expand Down
4 changes: 2 additions & 2 deletions src/pages/Projects/ProjectDetail.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const ProjectDetail = () => {
<Col className={`${styles.detail_right}`} xl={9}>
{partners.map((line, index) => (
<ul className={`${styles.partner}`} key={index}>
{line}
<li>{line}</li>
</ul>
))}
</Col>
Expand Down Expand Up @@ -98,7 +98,7 @@ const ProjectDetail = () => {
<Col className={`${styles.detail_right}`} xl={9}>
{methods.map((line, index) => (
<ul className={`${styles.method}`} key={index}>
-{line}
<li>-{line}</li>
</ul>
))}
</Col>
Expand Down
13 changes: 3 additions & 10 deletions src/pages/Projects/SelectComp.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,7 @@ import { useEffect, useState } from "react";
import styles from "./select.module.css";
import { useSearchParams } from "react-router-dom";

const SelectComp = ({
isPreSelected,
value,
onChange,
options,
type,
url,
}) => {
const SelectComp = ({ isPreSelected, value, onChange, options, type, url }) => {
const [isOpen, setIsOpen] = useState(false);
const [searchParams, setSearchParams] = useSearchParams("");
const [showClearButton, setShowClearButton] = useState(
Expand Down Expand Up @@ -94,7 +87,7 @@ const SelectComp = ({
<ul className={`${styles.options} ${isOpen ? styles.show : ""}`}>
{options.map((option, index) => (
// eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-noninteractive-element-interactions
<ul
<li
onClick={(e) => {
e.stopPropagation();
selectOption(option.title.rendered);
Expand All @@ -119,7 +112,7 @@ const SelectComp = ({
} ${index == highlightedIndex ? styles.highlighted : ""}`}
>
{option.title.rendered}
</ul>
</li>
))}
</ul>
</div>
Expand Down
2 changes: 2 additions & 0 deletions src/pages/Projects/projects.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -200,11 +200,13 @@
.partner {
padding-left: 0;
margin-bottom: 0;
list-style-type: none;
}

.method {
padding-left: 0;
margin-bottom: 0;
list-style-type: none;
}

div.project_detail_title.col {
Expand Down
4 changes: 2 additions & 2 deletions src/pages/Projects/select.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
z-index: 100;
transition: max-height 0.4s;
overflow: hidden;

list-style-type: none;
/* display: none; */
/* max-height: 30em; */
/* overflow-y: hidden; */
Expand All @@ -137,7 +137,7 @@
font-family: 'Barlow Condensed', sans-serif;
font-size: 24px;
font-weight: 400;
letter-spacing: -0.9px;
letter-spacing: -1px;
color: #000000;


Expand Down
4 changes: 2 additions & 2 deletions src/pages/Staffs/StaffDetailCompLeft.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ const StaffDetailCompLeft = ({ staff }) => {
<div className={`${styles.staff_info}`}>{staff.acf.position}</div>
<ul className={`${styles.staff_info_position_higher}`}>
{information.map((line, index) => (
<ul className={`${styles.info_line}`} key={index}>
<li className={`${styles.info_line}`} key={index}>
{line}
</ul>
</li>
))}
</ul>
<div className={`${styles.staff_detail_left_bottom_element}`}>
Expand Down
2 changes: 2 additions & 0 deletions src/pages/Staffs/staffs.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,13 @@ ul.staff_info_position_higher {
font-size: 20px;
font-weight: 400;
padding-left: 0px;
list-style-type: none;
}

.info_line {
padding-left: 0px;
text-align: center;

}

div.staff_info_position_lower {
Expand Down

0 comments on commit 0e627b9

Please sign in to comment.