diff --git a/packages/react-forms/src/InputRadio/InputRadio.md b/packages/react-forms/src/InputRadio/InputRadio.md new file mode 100644 index 00000000..5444f35c --- /dev/null +++ b/packages/react-forms/src/InputRadio/InputRadio.md @@ -0,0 +1,34 @@ +The `InputRadio` component provides an API compatible with the [`input[type=radio]`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/radio) HTML element. + +```js +
+ + + + + + + + + + + + + + + + + + + + +
+ Radios
On + +
Off + +
Disabled + +
+
+``` diff --git a/packages/react-forms/src/InputRadio/__snapshots__/index.test.js.snap b/packages/react-forms/src/InputRadio/__snapshots__/index.test.js.snap new file mode 100644 index 00000000..4b7d7266 --- /dev/null +++ b/packages/react-forms/src/InputRadio/__snapshots__/index.test.js.snap @@ -0,0 +1,130 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`renders a disabled InputRadio 1`] = ` +.emotion-0 { + opacity: 0; + position: absolute; + width: 0; + height: 0; + pointer-events: none; +} + +.emotion-3 { + width: 18px; + height: 18px; + border-radius: 50%; + border-width: 1px; + border-style: solid; + border-color: #8F9BA3; + margin: 1px; + -webkit-transition: all 0.2s ease-in-out; + transition: all 0.2s ease-in-out; + opacity: 0.4; +} + +.emotion-1:checked ~ .emotion-3 { + border-width: 5px; + border-color: #00c1bb; +} + +.emotion-1:focus-visible ~ .emotion-3 { + box-shadow: 0 0 0 0.5px #FFFFFF,0 0 2px 2px rgba(0,193,187,0.8); +} + +.emotion-1:focus-visible ~ .emotion-3:hover { + box-shadow: 0 0 0 0.5px #FFFFFF,0 0 2px 2px rgba(0,193,187,0.8),0 0 4px rgba(27,31,34,0.8); +} + +.emotion-3:hover { + box-shadow: 0 0 4px rgba(27,31,34,0.8); +} + +.emotion-3:hover { + box-shadow: none; +} + + +