forked from AkkomaGang/akkoma-fe
fix
This commit is contained in:
parent
1aea1f217e
commit
d342f32a94
1 changed files with 1 additions and 1 deletions
|
@ -82,7 +82,7 @@ const relativeLuminance = (srgb) => {
|
||||||
* @param {Object} b - sRGB color
|
* @param {Object} b - sRGB color
|
||||||
* @returns {Number} color ratio
|
* @returns {Number} color ratio
|
||||||
*/
|
*/
|
||||||
const getContrastRatio = (a, b) => {
|
export const getContrastRatio = (a, b) => {
|
||||||
const la = relativeLuminance(a)
|
const la = relativeLuminance(a)
|
||||||
const lb = relativeLuminance(b)
|
const lb = relativeLuminance(b)
|
||||||
const [l1, l2] = la > lb ? [la, lb] : [lb, la]
|
const [l1, l2] = la > lb ? [la, lb] : [lb, la]
|
||||||
|
|
Loading…
Reference in a new issue