Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
423e5b2
Fixed color contrast warning placement
AkimFA Jan 24, 2025
4ba6418
Change bgColor algorithm
AkimFA Jan 24, 2025
8895505
Better check for a text's index in an element
AkimFA Jan 27, 2025
16a8d89
Jest test reqs
AkimFA Jan 28, 2025
7ba2497
More exports for test
AkimFA Jan 28, 2025
26925d1
Small test support fixes
AkimFA Jan 28, 2025
fec6460
Fixed exports for unit testing
AkimFA Jan 28, 2025
705fe2e
Merge branch 'Color-Warning-Placement' into updated
AkimFA Jan 28, 2025
94fc68b
Changes to checkDocumentContrast
AkimFA Jan 30, 2025
2000214
commenting
AkimFA Jan 31, 2025
7838cb4
Removed checkContrastRatio
AkimFA Jan 31, 2025
fecef80
Testing Color suggestion
AkimFA Jan 31, 2025
eb007cc
Initial color suggestion implementation
AkimFA Jan 31, 2025
3c84124
Small edits to suggestion
AkimFA Jan 31, 2025
ca0c288
fix comments
AkimFA Jan 31, 2025
4bd3fb1
Adjusted index of warning
AkimFA Feb 3, 2025
4dbf807
Fixed warning placement and removed parts of parseColor function
AkimFA Feb 4, 2025
00eab10
Change return format
AkimFA Feb 10, 2025
db0169c
Merge branch 'updated' into color-suggestion
AkimFA Feb 11, 2025
56e50db
Added color scheme suggestion in sidebar
AkimFA Feb 14, 2025
327b0f0
Added a duplicate check for color scheme
AkimFA Feb 14, 2025
06a28ac
Fixed text color of color scheme
AkimFA Feb 14, 2025
64d37f6
Fixed color scheme UI, added checks, and reformatted data
AkimFA Feb 17, 2025
21fe918
Moved data formatting for colorscheme
AkimFA Feb 17, 2025
844c773
Merge branch 'updated' into Testing
AkimFA Feb 17, 2025
ef95606
Index Check test for color contrast
AkimFA Feb 18, 2025
daba430
Added script and change return
AkimFA Feb 18, 2025
a2492fc
Added text for limitations
AkimFA Feb 20, 2025
0f2ab8d
Added libraries for testing
AkimFA Feb 23, 2025
839d800
Added files used in testing
AkimFA Feb 24, 2025
d160ae4
Changed message
AkimFA Feb 24, 2025
a5b6674
Small background fix
AkimFA Feb 26, 2025
c9e4534
Getting css stylesheet case
AkimFA Mar 3, 2025
8e66c0d
Added External stylesheet check
AkimFA Mar 3, 2025
4ddf046
Merge branch 'color-suggestion' into Testing
AkimFA Mar 3, 2025
a23c717
Small changes to testing output
AkimFA Mar 4, 2025
dcab150
Small check for AAA level in text color suggestion
AkimFA Mar 6, 2025
97d42ba
Fixed image testing and small edge case in color contrast
AkimFA Mar 7, 2025
f58b1e7
Revert "Fixed image testing and small edge case in color contrast"
AkimFA Mar 7, 2025
e646780
Merge branch 'color-suggestion' into Testing
AkimFA Mar 7, 2025
6129446
image test file input fix
AkimFA Mar 7, 2025
3c96749
Added check for file type
AkimFA Mar 7, 2025
4833cc3
Unit tests
AkimFA Mar 7, 2025
4628a61
Update color-contrast.js
AkimFA Mar 9, 2025
8b110a8
Update color-contrast.js
AkimFA Mar 9, 2025
0d87ced
Added and fixed some unit tests
AkimFA Mar 9, 2025
f0bcc51
Added multiple external sheet support
AkimFA Mar 9, 2025
a8766c4
Merge branch 'color-suggestion' into Testing
AkimFA Mar 9, 2025
b4c8077
Added unit test for multiple stylesheets
AkimFA Mar 10, 2025
907a536
fixed mistake in imageTest code
AkimFA Mar 10, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion client/out/extension.js

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

18 changes: 18 additions & 0 deletions client/out/test/base/cssIndexError.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Run JavaScript</title>
<style>
#para {
color: #ffffff;
}
</style>
</head>
<body>

<p id="para">Hello 1</p>

</body>
</html>
21 changes: 21 additions & 0 deletions client/out/test/base/cssIndexNoError.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Run JavaScript</title>
<style>
body {
background-color: black;
}
#para {
color: white;
}
</style>
</head>
<body>

<p id="para">Hello 1</p>

</body>
</html>
2 changes: 2 additions & 0 deletions client/out/test/base/externalCss.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
body {background-color: black;}
#para {color: white;}
1 change: 1 addition & 0 deletions client/out/test/base/externalCss1.css
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#para {color: white;}
18 changes: 18 additions & 0 deletions client/out/test/base/indexAndSizeError.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Run JavaScript</title>
<style>
body {
background-color: black;
}
</style>
</head>
<body>

<p style="color: #ff0000; font-size: 1em;">Hello 1</p>

</body>
</html>
18 changes: 18 additions & 0 deletions client/out/test/base/indexAndSizeNoError.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Run JavaScript</title>
<style>
body {
background-color: black;
}
</style>
</head>
<body>

<p style="color: #ff0000; font-size: 2em;">Hello 1</p>

</body>
</html>
18 changes: 18 additions & 0 deletions client/out/test/base/indexError.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Run JavaScript</title>
<style>
body {
background-color: rgb(255, 255, 255);
}
</style>
</head>
<body>

<p style="color: #ff0000;">Hello 1</p>

</body>
</html>
18 changes: 18 additions & 0 deletions client/out/test/base/indexErrorWithChildBg.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Run JavaScript</title>
<style>
body {
background-color: rgb(255, 255, 255);
}
</style>
</head>
<body>

<p style="background-color: #ff0000; color: #ff0000;">Hello 1</p>

</body>
</html>
18 changes: 18 additions & 0 deletions client/out/test/base/indexNoError.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Run JavaScript</title>
<style>
body {
background-color: rgb(255, 255, 255);
}
</style>
</head>
<body>

<p style="color: #000000;">Hello 1</p>

</body>
</html>
18 changes: 18 additions & 0 deletions client/out/test/base/indexNoErrorWithChildBg.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Run JavaScript</title>
<style>
body {
background-color: rgb(255, 255, 255);
}
</style>
</head>
<body>

<p style="background-color: #00af00; color: #000000;">Hello 1</p>

</body>
</html>
15 changes: 15 additions & 0 deletions client/out/test/base/multipleStylesheetError.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Run JavaScript</title>
<link rel="stylesheet" type="text/css" href="client/out/test/base/externalCssErrorPart1.css">
<link rel="stylesheet" type="text/css" href="client/out/test/base/externalCssErrorPart2.css">
</head>
<body>

<p id="para">Hello 1</p>

</body>
</html>
15 changes: 15 additions & 0 deletions client/out/test/base/multipleStylesheetNoError.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Run JavaScript</title>
<link rel="stylesheet" type="text/css" href="client/out/test/base/externalCssNoErrorPart1.css">
<link rel="stylesheet" type="text/css" href="client/out/test/base/externalCssNoErrorPart2.css">
</head>
<body>

<p id="para">Hello 1</p>

</body>
</html>
20 changes: 20 additions & 0 deletions client/out/test/base/nestedIndexError.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Run JavaScript</title>
<style>
body {
background-color: rgb(255, 255, 255);
}
</style>
</head>
<body>

<div>
<p style="color: #ff0000;">Hello 1</p>
</div>

</body>
</html>
20 changes: 20 additions & 0 deletions client/out/test/base/nestedIndexErrorWithChildBg.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Run JavaScript</title>
<style>
body {
background-color: rgb(255, 255, 255);
}
</style>
</head>
<body>

<div>
<p style="background-color: #ff0000; color: #ff0000;">Hello 1</p>
</div>

</body>
</html>
20 changes: 20 additions & 0 deletions client/out/test/base/nestedIndexErrorWithParentAndChildBg.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Run JavaScript</title>
<style>
body {
background-color: rgb(255, 255, 255);
}
</style>
</head>
<body>

<div style="background-color: #000000;">
<p style="background-color: #ff0000; color: #ff0000;">Hello 1</p>
</div>

</body>
</html>
20 changes: 20 additions & 0 deletions client/out/test/base/nestedIndexErrorWithParentBg.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Run JavaScript</title>
<style>
body {
background-color: rgb(255, 255, 255);
}
</style>
</head>
<body>

<div style="background-color: #ff0000;">
<p style="color: #ff0000;">Hello 1</p>
</div>

</body>
</html>
20 changes: 20 additions & 0 deletions client/out/test/base/nestedIndexNoError.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Run JavaScript</title>
<style>
body {
background-color: rgb(255, 255, 255);
}
</style>
</head>
<body>

<div>
<p style="color: #000000;">Hello 1</p>
</div>

</body>
</html>
20 changes: 20 additions & 0 deletions client/out/test/base/nestedIndexNoErrorWithChildBg.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Run JavaScript</title>
<style>
body {
background-color: rgb(255, 255, 255);
}
</style>
</head>
<body>

<div>
<p style="background-color: #000000; color: #ffffff;">Hello 1</p>
</div>

</body>
</html>
20 changes: 20 additions & 0 deletions client/out/test/base/nestedIndexNoErrorWithParentAndChildBg.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Run JavaScript</title>
<style>
body {
background-color: rgb(255, 255, 255);
}
</style>
</head>
<body>

<div style="background-color: #ffffff;">
<p style="background-color: #000000; color: #ffffff;">Hello 1</p>
</div>

</body>
</html>
Loading