fleet/frontend/components/PaginatedList/_styles.scss
jacobshandling 9ab0eb2acd
UI: Update conditional access on a per-policy basis (#28658)
## For #28049 , #28610

- **Implement front end ability to enable or disable conditional access
on a per-policy basis**
- **Update policy status UI to include new "action required" state,
representing a failed policy on a host with conditional access enabled**
- Additional improvements

<img width="1624" alt="Screenshot 2025-04-29 at 1 32 33 PM"
src="https://github.com/user-attachments/assets/960b3348-b0e2-48b8-bcff-28f91f64fd01"
/>

<img width="1624" alt="Screenshot 2025-04-29 at 12 15 39 PM"
src="https://github.com/user-attachments/assets/b0e0cf1f-a693-4e0b-b18a-a44ee258975f"
/>

<img width="1624" alt="Screenshot 2025-04-29 at 12 15 49 PM"
src="https://github.com/user-attachments/assets/15f7bea1-7338-4997-93bf-8baeb308e3f0"
/>

<img width="1400" alt="updated policies table headers"
src="https://github.com/user-attachments/assets/164fd84a-a9ee-4dfe-8d73-b4e82e27edbc"
/>

- [x] Changes file added for user-visible changes in `changes/`
- [ ] Added/updated automated tests
- [x] A detailed QA plan exists on the associated ticket (if it isn't
there, work with the product group's QA engineer to add it)
- [x] Manual QA for all new/changed functionality

---------

Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
2025-05-01 11:43:38 -07:00

109 lines
2.1 KiB
SCSS

.paginated-list {
gap: $pad-medium;
&__header {
padding: $pad-medium $pad-large;
font-size: $x-small;
border-bottom: 1px solid $ui-fleet-black-10;
background-color: $ui-off-white;
}
.loading-overlay {
display: flex;
flex-grow: 1;
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
background-color: rgba(255, 255, 255, 0.8);
z-index: 1;
.loading-spinner {
position: sticky;
top: 0px;
left: 0px;
}
}
&__list {
display: flex;
flex-direction: column;
align-items: flex-start;
align-self: stretch;
border-radius: 4px;
border: 1px solid $ui-fleet-black-10;
// negate ul padding
padding-left: 0;
margin: 0;
}
&__row {
display: flex;
max-width: 100%;
padding: 8px 12px;
justify-content: space-between;
align-items: center;
align-self: stretch;
border-bottom: 1px solid $ui-fleet-black-10;
gap: 20px;
.form-field--checkbox {
flex: 1 1 0%;
/* This allows growing and shrinking */
min-width: 0;
/* This is crucial for proper shrinking */
}
.fleet-checkbox__tick {
flex: 0 0 auto;
/* This prevents growing and shrinking */
width: fit-content;
/* This ensures button isn't cut off */
}
.fleet-checkbox__label {
display: flex;
white-space: nowrap;
flex: 1 1 0%;
/* This allows growing and shrinking */
min-width: 0;
/* This is crucial for proper shrinking */
}
&:not(.paginated-list__row--disabled):hover {
background: $ui-off-white;
cursor: pointer;
label {
cursor: pointer;
}
.policy-row__preview-button {
visibility: visible;
}
}
&:first-child {
border-radius: 4px 4px 0 0;
}
&:last-child {
border-radius: 0 0 4px 4px;
border-bottom: none;
}
}
// For TooltipTruncatedText
.fleet-checkbox__label {
display: flex;
}
&.form-fields {
&--disabled {
@include disabled;
}
}
.pagination {
margin-top: 0;
}
}