0.1.12 • Published 9 months ago
@rescui/focus-manager v0.1.12
Tiny helper, which adds data-focus-method
attribute to focused elements.
Possible values:
mouse
key
touch
Usage
JS:
import FocusManager from '@rescui/focus-manager'
document.addEventListener('DOMContentLoaded', () => {
new FocusManager();
});
CSS:
/* Your custom focus styles */
:focus {
outline: 2px solid #087CFA;
}
/* Disable focus outline for touch and mouse interactions */
:focus[data-focus-method="mouse"],
:focus[data-focus-method="touch"] {
outline: none;
}
0.1.11
9 months ago
0.1.12
9 months ago
0.1.10
9 months ago
0.1.9
10 months ago
0.1.9-test-canary-release-a00fb377.24
10 months ago
0.1.9-RUI-201-Support-css-modules-in-typography.25
10 months ago
0.1.9-test-canary-release.22
10 months ago
0.1.9-test-canary-release.23
10 months ago
0.1.8
12 months ago
0.1.7
12 months ago
0.1.6
2 years ago
0.1.5
2 years ago
0.1.4
2 years ago
0.1.3
3 years ago
0.1.2
3 years ago
0.1.1
3 years ago
0.1.0
4 years ago
0.0.5
4 years ago
0.0.4
4 years ago
0.0.3
4 years ago