Skip to content
This repository was archived by the owner on Feb 22, 2022. It is now read-only.

Commit 7311364

Browse files
committed
Remove group-focus variant
1 parent 97e5d92 commit 7311364

File tree

6 files changed

+1566
-1253
lines changed

6 files changed

+1566
-1253
lines changed

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project mostly adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [4.0.0] - 2020-05-09
9+
10+
### Removed
11+
- Removed the `group-focus` variant since it is now built into Tailwind
12+
813
## [3.1.1] - 2020-03-17
914

1015
### Fixed
@@ -59,7 +64,8 @@ No change since 2.0.0-beta.1
5964

6065
Initial release
6166

62-
[Unreleased]: https://github.com/benface/tailwindcss-interaction-variants/compare/v3.1.1...HEAD
67+
[Unreleased]: https://github.com/benface/tailwindcss-interaction-variants/compare/v4.0.0...HEAD
68+
[4.0.0]: https://github.com/benface/tailwindcss-interaction-variants/compare/v3.1.1...v4.0.0
6369
[3.1.1]: https://github.com/benface/tailwindcss-interaction-variants/compare/v3.1.0...v3.1.1
6470
[3.1.0]: https://github.com/benface/tailwindcss-interaction-variants/compare/v3.0.0...v3.1.0
6571
[3.0.0]: https://github.com/benface/tailwindcss-interaction-variants/compare/v2.4.0...v3.0.0

README.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ module.exports = {
2121
},
2222
},
2323
variants: {
24-
backgroundColor: ['checked', 'group-focus', 'group-focus-within', 'group-active', 'group-visited', 'group-disabled', 'hocus', 'group-hocus', 'can-hover', 'no-hover'],
24+
backgroundColor: ['checked', 'group-focus-within', 'group-active', 'group-visited', 'group-disabled', 'hocus', 'group-hocus', 'can-hover', 'no-hover'],
2525
},
2626
plugins: [
2727
require('tailwindcss-interaction-variants'),
@@ -40,10 +40,6 @@ The above configuration would generate the following CSS:
4040
background-color: black;
4141
}
4242

43-
.group:focus .group-focus\:bg-black {
44-
background-color: black;
45-
}
46-
4743
.group:focus-within .group-focus-within\:bg-black {
4844
background-color: black;
4945
}

index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ module.exports = plugin(function({ addVariant, config, e, postcss }) {
3838
};
3939

4040
addVariant('checked', pseudoClassVariant('checked'));
41-
addVariant('group-focus', groupPseudoClassVariant('focus'));
4241
addVariant('group-focus-within', groupPseudoClassVariant('focus-within'));
4342
addVariant('group-active', groupPseudoClassVariant('active'));
4443
addVariant('group-visited', groupPseudoClassVariant('visited'));

0 commit comments

Comments
 (0)