Skip to content

Commit

Permalink
[web] Fix Agama selectors look&feel (#979)
Browse files Browse the repository at this point in the history
## Problem

The `ul` styles were overwritten in #886 to make them looks like what
they are: unordered lists. However, such a changed impacted in the
look&feel of the current Agama selectors.

## Solution

Restore the Agama selectors by setting their list-type and margins
explicetely.

## Testing

- Tested manually
  • Loading branch information
dgdavid authored Jan 8, 2024
2 parents b8b9e64 + 41d4403 commit 7ec8c10
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions web/src/assets/styles/blocks.scss
Original file line number Diff line number Diff line change
Expand Up @@ -260,11 +260,15 @@ span.notification-mark[data-variant="sidebar"] {
}

ul[data-type="agama/list"] {
list-style: none;
margin-inline: 0;

li {
border: 2px solid var(--color-gray-dark);
padding: var(--spacer-normal);
text-align: start;
background: var(--color-gray-light);
margin-block-end: 0;

&:nth-child(n+2) {
border-top: 0;
Expand Down
5 changes: 3 additions & 2 deletions web/src/assets/styles/index.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// PatternFly overrides
@use "~/assets/styles/patternfly-overrides.scss";

@use "~/assets/fonts.scss";
@use "~/assets/styles/variables.scss";
// TODO: merge app and global
Expand All @@ -8,5 +11,3 @@
@use "~/assets/styles/composition.scss";
@use "~/assets/styles/blocks.scss";

// PatternFly overrides
@use "~/assets/styles/patternfly-overrides.scss";

0 comments on commit 7ec8c10

Please sign in to comment.