Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed focus movement within a modal. #87

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
2 changes: 1 addition & 1 deletion .node-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v8.9.4
v18.16.0
7 changes: 7 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"bracketSameLine": true,
"printWidth": 100,
"semi": true,
"singleQuote": true,
"tabWidth": 2
}
31 changes: 16 additions & 15 deletions css/smartphoto.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@

@keyframes smartphoto-loader {
0% {
opacity: .4;
opacity: 0.4;
transform: rotate(0deg);
}
50% {
opacity: 1;
transform: rotate(180deg);
}
100% {
opacity: .4;
opacity: 0.4;
transform: rotate(360deg);
}
}
Expand Down Expand Up @@ -93,7 +93,7 @@
animation-timing-function: ease-out;
}

.smartphoto[aria-hidden="true"] {
.smartphoto[aria-hidden='true'] {
display: none;
}

Expand All @@ -103,7 +103,7 @@

.smartphoto-count {
display: inline-block;
color: #FFF;
color: #fff;
font-size: 16px;
}

Expand Down Expand Up @@ -140,12 +140,13 @@
border: none;
background-color: transparent;
background-image: url(data:image/svg+xml;base64,PHN2ZyBpZD0i44Os44Kk44Ok44O8XzEiIGRhdGEtbmFtZT0i44Os44Kk44Ok44O8IDEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDI4MzQuNjUgMjgzNC42NSIgZmlsbD0iI0ZGRiI+PHRpdGxlPmljb248L3RpdGxlPjxwYXRoIGQ9Ik0xNTc2LjQyLDE0MDYuNzYsMjc4NCwxOTkuMTlhNTYuODYsNTYuODYsMCwwLDAsMC04MC4xOGwtNzguOTItNzguOTJhNTYuODYsNTYuODYsMCwwLDAtODAuMTgsMEwxNDE3LjMyLDEyNDcuNjYsMjA5Ljc1LDQwLjA5YTU2Ljg2LDU2Ljg2LDAsMCwwLTgwLjE4LDBMNTAuNjUsMTE5YTU2Ljg2LDU2Ljg2LDAsMCwwLDAsODAuMThMMTI1OC4yMywxNDA2Ljc2LDUwLjY1LDI2MTQuMzRhNTYuODYsNTYuODYsMCwwLDAsMCw4MC4xOGw3OC45Miw3OC45MmE1Ni44Niw1Ni44NiwwLDAsMCw4MC4xOCwwTDE0MTcuMzIsMTU2NS44NiwyNjI0LjksMjc3My40NGE1Ni44Niw1Ni44NiwwLDAsMCw4MC4xOCwwbDc4LjkyLTc4LjkyYTU2Ljg2LDU2Ljg2LDAsMCwwLDAtODAuMThaIi8+PC9zdmc+);
text-shadow: 0 1px 0 #FFF;
color: #FFF;
text-shadow: 0 1px 0 #fff;
color: #fff;
font-size: 30px;
text-decoration: none;
cursor: pointer;
line-height: 1;
z-index: 102;
}

.smartphoto-body {
Expand Down Expand Up @@ -226,7 +227,7 @@
animation-timing-function: ease-out;
}

.smartphoto-arrows[aria-hidden="true"] {
.smartphoto-arrows[aria-hidden='true'] {
animation-name: smartphoto-hide;
display: none;
}
Expand All @@ -248,7 +249,7 @@
outline: none;
}

.smartphoto-arrows [aria-hidden="true"] {
.smartphoto-arrows [aria-hidden='true'] {
animation-name: smartphoto-hide;
display: none;
}
Expand Down Expand Up @@ -295,7 +296,7 @@
animation-timing-function: ease-out;
}

.smartphoto-nav[aria-hidden="true"] {
.smartphoto-nav[aria-hidden='true'] {
animation-name: smartphoto-hide;
display: none;
}
Expand All @@ -322,14 +323,14 @@
display: block;
width: 100%;
height: 100%;
background-color: #FFF;
background-color: #fff;
background-position: center center;
background-size: cover;
opacity: .5;
opacity: 0.5;
}

.smartphoto-nav a:focus {
opacity: .8;
opacity: 0.8;
}

.smartphoto-nav a.current {
Expand Down Expand Up @@ -379,7 +380,7 @@
width: 100%;
height: 50px;
padding: 0 50px;
color: #FFF;
color: #fff;
font-size: 12px;
text-align: center;
line-height: 50px;
Expand Down Expand Up @@ -409,10 +410,10 @@
height: 30px;
margin-top: -25px;
margin-left: -25px;
border: 8px solid #17CDDD;
border: 8px solid #17cddd;
border-right-color: transparent;
border-radius: 50%;
animation: smartphoto-loader .5s infinite linear;
animation: smartphoto-loader 0.5s infinite linear;
}

.smartphoto-img-clone {
Expand Down