1.2.0 • Published 3 years ago
oxygen-mdc v1.2.0
Oxygen web-components
The Oxygen web-components are a light-weight collection of basic input elements, such as text input, button, icons, etc.
Demo: https://oxygen-mdc.web.app/
Usage
Install the Oxygen web components in:
npm install --save oxygen-mdcImport the components into your code. For the button, use:
import 'oxygen-mdc/oxy-button';Finally, use the component in your code:
<oxy-button>Push me</oxy-button>Bugs and missing features
- Missing support for keyboard navigation: Buttons, checkboxes, tabs, etc. cannot be activated with Enter or Space.
- The slider cannot be changed with the keyboard. On mobile, trying to change the slider may scroll the page.
- Tabbing through elements in dialogs is broken, focus trapping and focus restore is not properly implemented.
Changelog
Version 1.2.0
- Overhaul of the
oxy-tabcomponent. The styles are cleaner, and styleability was improved. See the source file for style variables.
Version 1.1.0
- Added
HTMLElementTagNameMapto all elements - Changed import to
lit/decorators.jsto include the.jsextension
Version 1.0.0
Changes for version 1.0.0 are centered around a different style for focused
elements using a blue outline (by default) instead of a background color.
Further, the focus will only show when the keyboard is used for navigation,
relying on the :focus-visible selector instead of :focus. Several other CSS
simplifications have been done.
API breaking changes for Version 1.0.0
- Removed
--oxy-button-background-coloras it can be styled on the host - Changed
oxy-button's host style frombackground-colortobackground - Changed
oxy-button's focus to use blue outline by default, which changes the meaning of--oxy-button-focus-color - Added
activeproperty foroxy-buttonwhich is set during activation, e.g., while the mouse button is pressed
- Changed
oxy-checkbox's focus to use blue outline by default - Added
--oxy-checkbox-checked-bordervariable - Added
--oxy-checkbox-focus-colorvariable
- Default for
--oxy-dialog-text-coloris now inherited from parent - The
oxy-dialogcan now be styled with the CSS partdialog
- Added
oxy-inputstyles for the disabled state - Changed
--oxy-input-background-coloronbackground-colorto--oxy-input-backgroundonbackground - Replaced
--oxy-input-border-widthand--oxy-input-border-colorwith--oxy-input-borderwhich defines all border attributes - Replaced
--oxy-input-border-color-focusedwith--oxy-input-border-focusedwhich defines all border attributes - Default for
--oxy-input-text-coloris now inherited from parent
- Added
--oxy-slider-focus-colorvariable - Added
--oxy-slider-track-heightvariable - Added
--oxy-slider-thumb-sizeand--oxy-slider-thumb-radiusvariables
- Replaced
--oxy-tabs-border-colorwith--oxy-tabs-borderwhich defines all border attributes
- Default for
--oxy-textarea-text-coloris now inherited from parent - Changed
--oxy-textarea-background-coloronbackground-colorto--oxy-textarea-backgroundonbackground - Changed
--oxy-textarea-background-color-focusedonbackground-colorto--oxy-textarea-background-focused - Replaced
--oxy-textarea-border-widthand--oxy-textarea-border-colorwith--oxy-textarea-borderwhich defines all border attributes - Replaced
--oxy-textarea-border-color-focusedwith--oxy-textarea-border-focusedwhich defines all border attributes - Default for
--oxy-textarea-box-shadowchanged tonone - Default for
--oxy-textarea-box-shadow-focusedchanged tonone - Added
--oxy-textarea-placeholder-colorvariable