1
1
mirror of https://github.com/primer/css.git synced 2024-12-23 22:24:11 +03:00

Fix "test deprecations"

These selectors are not really needed anymore.

- `.subnav-item.selected:hover/focus` can be removed because `.subnav-item.selected` already overrides `.subnav-item:hover/focus`.
- `.autocomplete-item[aria-selected="true"]` got changed to `[aria-selected=true]` without the quotes to be consistent with the rest.
This commit is contained in:
simurai 2020-01-23 14:37:41 +09:00
parent f914053af9
commit 9b5fdbca0f

View File

@ -4,6 +4,17 @@
* array and a "message" string.
*/
const versionDeprecations = {
'14.2.0': [
{
selectors: [
'.subnav-item.selected:hover',
'.subnav-item.selected:focus',
'.autocomplete-item[aria-selected="true"]',
'.autocomplete-item[aria-selected="true"] *'
],
message: `These selectors are not needed anymore.`
}
],
'14.0.0': [
{
selectors: [