Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ENDPOINT] Fixed the spacing of child accordion items for policy response dialog. #71677

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,30 +26,36 @@ import {
* actions the endpoint took to apply the policy configuration.
*/
const PolicyResponseConfigAccordion = styled(EuiAccordion)`
> .euiAccordion__triggerWrapper {
.euiAccordion__triggerWrapper {
padding: ${(props) => props.theme.eui.paddingSizes.s};
}

&.euiAccordion-isOpen {
background-color: ${(props) => props.theme.eui.euiFocusBackgroundColor};
}

.euiAccordion__childWrapper {
background-color: ${(props) => props.theme.eui.euiColorLightestShade};
}

.policyResponseAttentionBadge {
background-color: ${(props) => props.theme.eui.euiColorDanger};
color: ${(props) => props.theme.eui.euiColorEmptyShade};
}

.euiAccordion__button {
:hover,
:focus {
text-decoration: none;
}
}

:hover:not(.euiAccordion-isOpen) {
background-color: ${(props) => props.theme.eui.euiColorLightestShade};
}

.policyResponseActionsAccordion {
.euiAccordion__iconWrapper,
svg {
height: ${(props) => props.theme.eui.euiIconSizes.small};
width: ${(props) => props.theme.eui.euiIconSizes.small};
Expand All @@ -59,6 +65,10 @@ const PolicyResponseConfigAccordion = styled(EuiAccordion)`
.policyResponseStatusHealth {
width: 100px;
}

.policyResponseMessage {
padding-left: ${(props) => props.theme.eui.paddingSizes.l};
}
`;

const ResponseActions = memo(
Expand Down Expand Up @@ -105,7 +115,7 @@ const ResponseActions = memo(
}
>
<EuiText size="xs" data-test-subj="policyResponseMessage">
<p>{statuses.message}</p>
<p className="policyResponseMessage">{statuses.message}</p>
</EuiText>
</EuiAccordion>
);
Expand Down