@import "@wordpress/base-styles/variables"; .dashboard-summary-button-list { .dashboard-summary-button-list__children-list { list-style: none; padding: 0; margin: 0; } .dashboard-summary-button-list__children-list-item { &:empty { display: none; } } &.has-density-low { // Do not add a bottom margin to the last (non-empty) child. .dashboard-summary-button-list__children-list-item:not(:nth-last-child(1 of :not(:empty))) { margin-bottom: $grid-unit-30; } } &.has-density-medium { .dashboard-summary-button-list__children-list-wrapper { // TODO: remove once the `CardBody` natively supports having no padding. padding: 0; } // Inherit the card border radius all the way to the each child button. // TODO: once the component uses React context, we should use that // to let the summary button component know the appropriate border // radius inheritance behavior. .dashboard-summary-button-list__children-list { border-radius: inherit; } // First (non-empty)