Theorically bulletproof CSS class for visually hide anything and keep it accessible to ATs.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aeiouyàáâãäåæèéêëìíîïòóôõöøùúûüýÿāăąēĕėęěĩīĭįijōŏőœũūŭůűųŷǎǐǒǔǖǘǚǜǟǡǣǫǭǻǽǿȁȃȅȇȉȋȍȏȕȗȧȩȫȭȯȱȳ̇аеийоуыэюяѐёєіїѝў |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { useState, useEffect, useCallback } from 'react' | |
function Posts() { | |
const [isLoading, setIsLoading] = useState(true) | |
const [posts, setPosts] = useState([]) | |
const fetchPosts = useCallback(async controller => { | |
try { | |
// Imagine that the fetch is going to take 3 seconds to finish | |
await new Promise(resolve => setTimeout(resolve, 3000)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const path = require("path"); | |
const camelCase = require("lodash.camelcase"); | |
const mode = process.env.MODE; | |
const name = path.basename(path.resolve("./")); | |
const pkg = require(path.join(path.resolve("./"), `package.json`)); | |
// pure here means they can be removed if unused (if minifying is on, of course) | |
const pure = | |
mode === "dev" | |
? [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @name string-strip-html | |
* @fileoverview Strips HTML tags from strings. No parser, accepts mixed sources. | |
* @version 8.2.9 | |
* @author Roy Revelt, Codsen Ltd | |
* @license MIT | |
* {@link https://codsen.com/os/string-strip-html/} | |
*/ | |
var ie=Object.create,w=Object.defineProperty,oe=Object.getPrototypeOf,V=Object.prototype.hasOwnProperty,re=Object.getOwnPropertyNames,ue=Object.getOwnPropertyDescriptor,Y=Object.getOwnPropertySymbols,ge=Object.prototype.propertyIsEnumerable;var z=(n,r,c)=>r in n?w(n,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):n[r]=c,L=(n,r)=>{for(var c in r||(r={}))V.call(r,c)&&z(n,c,r[c]);if(Y)for(var c of Y(r))ge.call(r,c)&&z(n,c,r[c]);return n},K=n=>w(n,"__esModule",{value:!0});var $e=(n,r)=>{for(var c in r)w(n,c,{get:r[c],enumerable:!0})},me=(n,r,c)=>{if(r&&typeof r=="object"||typeof r=="function")for(let O of re(r))!V.call(n,O)&&O!=="default"&&w(n,O,{get:()=>r[O],enumerable:!(c=ue(r,O))||c.enumerable});return n},C=n=>me(K(w(n!=null?ie(oe(n)):{},"default",n&&n.__esModule&&"defa |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* string-strip-html | |
* Strips HTML tags from strings. No parser, accepts mixed sources. | |
* Version: 8.2.9 | |
* Author: Roy Revelt, Codsen Ltd | |
* License: MIT | |
* Homepage: https://codsen.com/os/string-strip-html/ | |
*/ | |
'use strict'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @name string-strip-html | |
* @fileoverview Strips HTML tags from strings. No parser, accepts mixed sources. | |
* @version 8.2.9 | |
* @author Roy Revelt, Codsen Ltd | |
* @license MIT | |
* {@link https://codsen.com/os/string-strip-html/} | |
*/ | |
var __create = Object.create; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[user] | |
name = Pavan Kumar Sunkara | |
email = [email protected] | |
username = pksunkara | |
[core] | |
editor = vim | |
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol | |
pager = delta | |
[sendemail] | |
smtpencryption = tls |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Tests built around our Storybook | |
describe('Storybook', () => { | |
beforeEach(() => { | |
// Visiting our app before each test removes any state build up from | |
// previous tests. Visiting acts as if we closed a tab and opened a fresh one. | |
// In this case, we are using the publicly accessible AirBnB react-dates Storybook | |
cy.visit('http://airbnb.io/react-dates/') | |
}) | |
// Let's build some tests around the DateRangePicker | |
context('DateRangePicker', () => { |
NewerOlder