Skip to content

Instantly share code, notes, and snippets.

View alanbsmith's full-sized avatar
👋

Alan B Smith alanbsmith

👋
View GitHub Profile
@alanbsmith
alanbsmith / lemon_scones.md
Created August 28, 2021 12:04
Lemon scones

Lemon Scones

Ingredients

  • 3 cups all-purpose flour
  • ⅓ cup granulated sugar
  • 1 tsp salt
  • 2 ½ tsp baking powder
  • ½ tsp baking soda
  • ¾ cup unsalted butter frozen and grated (see post)
@alanbsmith
alanbsmith / peach-thyme-bourbon-infusion.md
Created August 27, 2021 23:59
Peach Thyme Bourbon Cocktail 🥃

Peach Thyme Bourbon Cocktail

Infusion

Ingredients

  • 2 cups high-proof bourbon (I like Knob Creek)
  • 1 peach
  • a few small fresh thyme sprigs
@alanbsmith
alanbsmith / keyboard support.md
Last active August 11, 2021 00:23
keyboard support

Menu follows the Actions Menu pattern using aria-activedescendant. Below is table of supported keyboard shortcuts and associated actions.

Key Action
Enter or Space Activates the menu item and then closes the menu
Escape Closes the menu
Up Arrow Moves focus to the previous menu item – if focus is on first menu i

Type Hierarchy Mapping

Main Mapping

Labs Mapping

  • { type.body2 } => { type.levels.subtext.medium }
@alanbsmith
alanbsmith / labs-type-hierarchy.ts
Created May 26, 2021 07:05
CK Type Hierarchies
import {typeColors} from '@workday/canvas-colors-web';
import {
CSSProperties,
type as baseType,
CanvasTypeVariant,
fontFamily,
} from '@workday/canvas-kit-react/tokens';
export interface CanvasTypeHierarchy {
brand1: CSSProperties;
@alanbsmith
alanbsmith / session-3.md
Last active April 30, 2021 15:55 — forked from NicholasBoll/session-3.md
Session 3

Session 3

Today we'll be covering creating compound components using models, behaviors, and utility functions in Canvas Kit that make composability easier. Please refer to the Create Compound Component docs for reference later.

Get the latest changes:

git fetch --all
@alanbsmith
alanbsmith / session-1-walkthrough.md
Created April 27, 2021 08:02
Canvas Kit v5 Workshop Session 1 | Walkthrough Guide
[
{
"name": "Burundi Buyenzi",
"country": "Burundi",
"region": "Africa",
"subRegion": "Buyenzi",
"roastLevel": "Light",
"type": "Single Origin",
"bagWeight": 12,
"price": "$16.55",