Skip to content

Instantly share code, notes, and snippets.

Matsuko missmatsuko

Block or report user

Report or block missmatsuko

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View top.md

The top property is used with position to set the top placement of an element. It only has an effect on positioned elements, which are elements with the position property set to anything other than static. For example: relative, absolute, fixed, or sticky.

Syntax

div {
  top: <length> || <percentage> || auto || inherit;
}
View reset.css
*,
*:after,
*:before {
box-sizing: border-box;
}
body,
html,
blockquote,
figure,
@missmatsuko
missmatsuko / a11y-debug-focus.js
Created Jul 31, 2019
a11y debug focus script - logs active element on tab
View a11y-debug-focus.js
document.addEventListener('keyup', (e) => {
if (event.key === 'Tab') {
console.log(document.activeElement);
}
});
View alt-text-for-social-media.csv
Social Network Dedicated Image Alt Text Platforms
Instagram [Yes](https://help.instagram.com/503708446705527) iOS and Android
Facebook [Yes](https://www.facebook.com/help/214124458607871) iOS and Computer
LinkedIn Yes Computer
Twitter [Yes](https://help.twitter.com/en/using-twitter/picture-descriptions) iOS and Android and Computer
View a11y-project_quick-test_navigate-using-just-your-keyboard.md

Introduction

Testing your site for keyboard navigation will ensure that keyboard users can access your site.

As a bonus, sites that can be navigated with a keyboard can also likely be navigated using other input devices.

How to navigate a website with a keyboard

Generally, pressing tab moves focus between elements and pressing enter will interact with them.

If you are using Safari, option-tab is the default keyboard shortcut to move focus between elements.

You can’t perform that action at this time.