Skip to content

Instantly share code, notes, and snippets.

View kwltrs's full-sized avatar

Kristofer Walters kwltrs

View GitHub Profile
@kwltrs
kwltrs / reports.buttons.ActionButton.yml
Last active May 24, 2022 13:25
FFE UU status som yaml
component: buttons_ActionButton
tests:
- ruleId: wcag-111
status: ikke_testet
versjon:
ffe-buttons-react: 16.0.1
ffe-buttons: 15.0.2
dato: 11.05.2022
enheter: []
varianter: []
@kwltrs
kwltrs / TabsExample.jsx
Created May 20, 2022 12:51
ffe-tabs-react proposal
import React, { useState } from 'react;
import { TabList, Tab } from '@sb1/ffe-tabs-react';
() => {
const ids = { house: 'house', car: 'car' };
const [activeTab, setActiveTab] = useState(ids.house);
const tabpanelProps = id => id === activeTab ? {} : {style: {display: 'none'}};
return <>
<TabList value={activeTab} onChange={value => setAvtiveTab(value)}>
@kwltrs
kwltrs / ffe-react-doc.json
Created November 10, 2020 10:19
FFE react doc
{
"packages/ffe-accordion-react/src/Accordion.js": {
"description": "",
"displayName": "Accordion",
"methods": [],
"props": {
"children": {
"type": {
"name": "node"
},
@kwltrs
kwltrs / .block
Last active March 22, 2018 14:21 — forked from mbostock/.block
FFE Dependency Graph
license: mit
height: 800

1.0.0 (2018-03-13)

  • refactor(ffe-icons-react): Improve API (e9b88a4)
  • refactor(ffe-tables-react): Add index.js (124f1ae)
  • test: Improves test coverage (019a7c2)
  • chore: add @sb1/ scope to all packages (37efbb4)
  • chore: Add a code of conduct (f7fb7ff), closes #8
  • chore: add a common eslintrc file (cc11d1c)
  • chore: Add a missing space (929ffb4)
@kwltrs
kwltrs / index.html
Created October 12, 2015 12:38
Code extracted from my talk "Fancy Input Elements with Web Components" held at Fronteers 2015 Jam Session. https://fronteers.nl/congres/2015/jam-session
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8>
<link rel=import href=star-rating.html>
<style>input[type=range] { font-size: 3em; } output { font-size: 2em; padding-left: 2em; }</style>
</head>
<body>
<form>
@kwltrs
kwltrs / example.html
Last active August 29, 2015 14:21
Code from my web rebels talk on web components. https://www.webrebels.org/openmic http://slides.com/kwltrs/wr2015
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Web Components</title>
<link rel="import" href="star-rating.html">
</head>
<body>
<form>
<input type="range" is="star-rating" name="rating">

Keybase proof

I hereby claim:

  • I am kwltrs on github.
  • I am kwltrs (https://keybase.io/kwltrs) on keybase.
  • I have a public key whose fingerprint is 33DF E650 EDF0 3A82 A4A1 3FA7 6A79 FA7F EDF9 0CA5

To claim this, I am signing this object:

@kwltrs
kwltrs / Firefox_OS_links.md
Created November 7, 2014 12:02
Linklist Firefox OS Lightning Talk - Knowit Developer Summit 2014
@kwltrs
kwltrs / STDOUT
Created December 13, 2011 16:43
Sinon and JsTestDriver
$ java -jar .\JsTestDriver-1.3.3d.jar --tests all
.FE
Total 3 tests (Passed: 1; Fails: 1; Errors: 1) (2,00 ms)
Chrome 15.0.874.121 Windows: Run 3 tests (Passed: 1; Fails: 1; Errors 1) (2,00 ms)
BugDemoTest.test failing failed (1,00 ms): AssertError: expected stub to have been called at least once but was never called
AssertError: expected stub to have been called at least once but was never called
at Object.fail (http://localhost:4224/test/sinon-1.2.0.js:2838:25)
at failAssertion (http://localhost:4224/test/sinon-1.2.0.js:2799:20)
at Object.called (http://localhost:4224/test/sinon-1.2.0.js:2822:17)
at Object.<anonymous> (http://localhost:4224/test/bug_demo_test.js:15:26)