2020-06-16 02:07:06 +00:00
|
|
|
.woocommerce-list {
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
Refactor <List> to support custom markup (https://github.com/woocommerce/woocommerce-admin/pull/6787)
* Create the new experimental list, default to rendering it when items are not supplied.
* Remove typings from the List, ListItem.
* Add react-transition-group as dependency.
* Fix warnings by wrapping with CSS transition, pass down props from List.
* Remove type annotations left in list-item.
* Duplicate some styles in the higher level woocommerce-list-item element, to make them work in the new list.
* Fix accessibility issues, adjust the role logic
* Add more testing of the roles logic.
* Mark the old list stories as deprecated, add a basic story for the new style.
* Expose ListItem without Experimental in the name.
* Remove some redundant code changes.
* Fix linting issues
* Add types package.
* Cast the type of children to TransitionGroup.
* Adjust the list to assume a purpose of being a list of links.
* Adjust the tests for the new behaviour.
* Fix css mangled by prettier.
* Fix types that are optional.
* Rework the list item.
* Export new list as experimental, fix accessibility styles and deprecation notice.
* Make the basic transition opt-in.
* Update classnames to get types.
* Add tests, adjust behaviour for css disable.
* Fix css lint, remove types/classnames, update tetsing-library/user-event.
* Fix the basic story for ExperimentalList.
* Conditionally add keyDown and role based on onClick handler. Adjust tests to new behaviour.
* tabIndex only on hasAction
* Update the package-lock
* Add changelog
* Fix transition styling
Co-authored-by: Paul Sealock <psealock@gmail.com>
Co-authored-by: Lourens Schep <lourensschep@gmail.com>
2021-04-23 18:47:43 +00:00
|
|
|
a.woocommerce-list__item {
|
|
|
|
color: inherit;
|
|
|
|
}
|
|
|
|
|
2019-07-10 02:25:25 +00:00
|
|
|
.woocommerce-list__item {
|
|
|
|
display: flex;
|
2019-07-19 02:54:38 +00:00
|
|
|
align-items: center;
|
2019-07-10 02:25:25 +00:00
|
|
|
margin-bottom: 0;
|
Refactor <List> to support custom markup (https://github.com/woocommerce/woocommerce-admin/pull/6787)
* Create the new experimental list, default to rendering it when items are not supplied.
* Remove typings from the List, ListItem.
* Add react-transition-group as dependency.
* Fix warnings by wrapping with CSS transition, pass down props from List.
* Remove type annotations left in list-item.
* Duplicate some styles in the higher level woocommerce-list-item element, to make them work in the new list.
* Fix accessibility issues, adjust the role logic
* Add more testing of the roles logic.
* Mark the old list stories as deprecated, add a basic story for the new style.
* Expose ListItem without Experimental in the name.
* Remove some redundant code changes.
* Fix linting issues
* Add types package.
* Cast the type of children to TransitionGroup.
* Adjust the list to assume a purpose of being a list of links.
* Adjust the tests for the new behaviour.
* Fix css mangled by prettier.
* Fix types that are optional.
* Rework the list item.
* Export new list as experimental, fix accessibility styles and deprecation notice.
* Make the basic transition opt-in.
* Update classnames to get types.
* Add tests, adjust behaviour for css disable.
* Fix css lint, remove types/classnames, update tetsing-library/user-event.
* Fix the basic story for ExperimentalList.
* Conditionally add keyDown and role based on onClick handler. Adjust tests to new behaviour.
* tabIndex only on hasAction
* Update the package-lock
* Add changelog
* Fix transition styling
Co-authored-by: Paul Sealock <psealock@gmail.com>
Co-authored-by: Lourens Schep <lourensschep@gmail.com>
2021-04-23 18:47:43 +00:00
|
|
|
text-decoration: none;
|
|
|
|
|
|
|
|
&.has-gutters {
|
|
|
|
padding: $gap $gap-large;
|
|
|
|
}
|
2019-07-10 02:25:25 +00:00
|
|
|
|
2019-07-19 02:54:38 +00:00
|
|
|
&.has-action {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
Refactor <List> to support custom markup (https://github.com/woocommerce/woocommerce-admin/pull/6787)
* Create the new experimental list, default to rendering it when items are not supplied.
* Remove typings from the List, ListItem.
* Add react-transition-group as dependency.
* Fix warnings by wrapping with CSS transition, pass down props from List.
* Remove type annotations left in list-item.
* Duplicate some styles in the higher level woocommerce-list-item element, to make them work in the new list.
* Fix accessibility issues, adjust the role logic
* Add more testing of the roles logic.
* Mark the old list stories as deprecated, add a basic story for the new style.
* Expose ListItem without Experimental in the name.
* Remove some redundant code changes.
* Fix linting issues
* Add types package.
* Cast the type of children to TransitionGroup.
* Adjust the list to assume a purpose of being a list of links.
* Adjust the tests for the new behaviour.
* Fix css mangled by prettier.
* Fix types that are optional.
* Rework the list item.
* Export new list as experimental, fix accessibility styles and deprecation notice.
* Make the basic transition opt-in.
* Update classnames to get types.
* Add tests, adjust behaviour for css disable.
* Fix css lint, remove types/classnames, update tetsing-library/user-event.
* Fix the basic story for ExperimentalList.
* Conditionally add keyDown and role based on onClick handler. Adjust tests to new behaviour.
* tabIndex only on hasAction
* Update the package-lock
* Add changelog
* Fix transition styling
Co-authored-by: Paul Sealock <psealock@gmail.com>
Co-authored-by: Lourens Schep <lourensschep@gmail.com>
2021-04-23 18:47:43 +00:00
|
|
|
&:focus {
|
|
|
|
box-shadow: inset 0 0 0 1px $studio-wordpress-blue,
|
|
|
|
inset 0 0 0 2px $studio-white;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:focus-visible {
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
// transitions
|
|
|
|
&:not(.transitions-disabled) {
|
|
|
|
&.woocommerce-list__item-enter {
|
|
|
|
opacity: 0;
|
|
|
|
max-height: 0;
|
|
|
|
transform: translateX(50%);
|
|
|
|
}
|
|
|
|
|
|
|
|
&.woocommerce-list__item-enter-active {
|
|
|
|
opacity: 1;
|
|
|
|
max-height: 100vh;
|
|
|
|
transform: translateX(0%);
|
|
|
|
transition: opacity 500ms, transform 500ms, max-height 500ms;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.woocommerce-list__item-exit {
|
|
|
|
opacity: 1;
|
|
|
|
max-height: 100vh;
|
|
|
|
transform: translateX(0%);
|
|
|
|
}
|
|
|
|
|
|
|
|
&.woocommerce-list__item-exit-active {
|
|
|
|
opacity: 0;
|
|
|
|
max-height: 0;
|
|
|
|
transform: translateX(50%);
|
|
|
|
transition: opacity 500ms, transform 500ms, max-height 500ms;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-08-19 22:38:10 +00:00
|
|
|
> .woocommerce-list__item-inner {
|
|
|
|
text-decoration: none;
|
|
|
|
width: 100%;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2020-06-19 00:13:41 +00:00
|
|
|
padding: $gap $gap-large;
|
2019-08-19 22:38:10 +00:00
|
|
|
|
|
|
|
&:focus {
|
2020-07-17 00:11:42 +00:00
|
|
|
box-shadow: inset 0 0 0 1px $studio-wordpress-blue,
|
|
|
|
inset 0 0 0 2px $studio-white;
|
2019-08-19 22:38:10 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-07-10 02:25:25 +00:00
|
|
|
.woocommerce-list__item-title {
|
2019-08-29 16:07:56 +00:00
|
|
|
color: $studio-gray-90;
|
2019-07-10 02:25:25 +00:00
|
|
|
}
|
|
|
|
|
2019-08-29 16:41:04 +00:00
|
|
|
.woocommerce-list__item-content {
|
2019-07-18 10:11:21 +00:00
|
|
|
margin-top: $gap-smallest;
|
2019-07-10 02:25:25 +00:00
|
|
|
display: block;
|
|
|
|
font-size: 14px;
|
|
|
|
line-height: 20px;
|
|
|
|
color: #50575d;
|
|
|
|
}
|
|
|
|
|
|
|
|
.woocommerce-list__item-before {
|
2019-07-18 10:11:21 +00:00
|
|
|
margin-right: 20px;
|
2019-07-10 02:25:25 +00:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
.woocommerce-list__item-after {
|
|
|
|
margin-left: $gap;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
margin-left: auto;
|
|
|
|
}
|
2020-06-16 02:07:06 +00:00
|
|
|
|
2020-07-17 00:11:42 +00:00
|
|
|
$chevron-color: $gray-900;
|
2020-06-16 02:07:06 +00:00
|
|
|
$background-color: $white;
|
2020-07-17 00:11:42 +00:00
|
|
|
$background-color-hover: $gray-100;
|
|
|
|
$border-color: $gray-100;
|
|
|
|
$foreground-color: var(--wp-admin-theme-color);
|
2021-02-17 22:54:02 +00:00
|
|
|
$foreground-color-hover: var(--wp-admin-theme-color);
|
2020-06-16 02:07:06 +00:00
|
|
|
|
|
|
|
background-color: $background-color;
|
|
|
|
|
|
|
|
&:not(:first-child) {
|
|
|
|
border-top: 1px solid $border-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background-color: $background-color-hover;
|
|
|
|
|
|
|
|
.woocommerce-list__item-title {
|
|
|
|
color: $foreground-color-hover;
|
|
|
|
}
|
|
|
|
|
|
|
|
.woocommerce-list__item-before > svg {
|
|
|
|
fill: $foreground-color-hover;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.woocommerce-list__item-title {
|
|
|
|
color: $foreground-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
.woocommerce-list__item-before > svg {
|
|
|
|
fill: $foreground-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
.woocommerce-list__item-after > svg {
|
|
|
|
fill: $chevron-color;
|
|
|
|
}
|
|
|
|
|
2020-06-17 12:58:35 +00:00
|
|
|
&.is-complete {
|
|
|
|
.woocommerce-task__icon {
|
2020-07-17 00:11:42 +00:00
|
|
|
background-color: var(--wp-admin-theme-color);
|
2020-06-17 12:58:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.woocommerce-list__item-title {
|
2020-07-17 00:11:42 +00:00
|
|
|
color: $gray-700;
|
2020-06-17 12:58:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.woocommerce-list__item-content {
|
|
|
|
display: none;
|
|
|
|
}
|
2020-06-16 02:07:06 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.woocommerce-list__item-title {
|
|
|
|
color: $studio-gray-80;
|
|
|
|
}
|
|
|
|
|
|
|
|
.woocommerce-list__item-content {
|
|
|
|
color: $studio-gray-50;
|
2019-07-10 02:25:25 +00:00
|
|
|
}
|