Skip to content

Commit

Permalink
Incorrect styling inside access control dropdown (#3758)
Browse files Browse the repository at this point in the history
Incorrect styling inside access control dropdown #3755
  • Loading branch information
alansemenov authored Oct 21, 2024
1 parent 0c3a29a commit 0ddcf83
Show file tree
Hide file tree
Showing 8 changed files with 63 additions and 56 deletions.
8 changes: 4 additions & 4 deletions src/main/resources/assets/admin/common/js/form/FormContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,22 +83,22 @@ export class FormContextBuilder {

validationErrors: ValidationError[];

public setShowEmptyFormItemSetOccurrences(value: boolean): FormContextBuilder {
public setShowEmptyFormItemSetOccurrences(value: boolean): this {
this.showEmptyFormItemSetOccurrences = value;
return this;
}

public setFormState(value: FormState): FormContextBuilder {
public setFormState(value: FormState): this {
this.formState = value;
return this;
}

public setLanguage(lang: string): FormContextBuilder {
public setLanguage(lang: string): this {
this.language = lang;
return this;
}

public setValidationErrors(value: ValidationError[]): FormContextBuilder {
public setValidationErrors(value: ValidationError[]): this {
this.validationErrors = value;
return this;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
.menu {
display: none;
position: absolute;
width: 100%;
z-index: @z-index-mask;
box-sizing: border-box;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,48 +14,10 @@
}

.names-and-icon-view {
float: left;
margin: 0 10px 0 0;
min-width: 200px;
flex: 1 auto;
}

.access-selector {
float: left;
min-width: 100px;
width: 120px;
margin: 0 10px 0 0;

.tab-menu-button {
text-align: left;
margin: 2px 0 0;
padding: 4px 5px;
color: @admin-font-gray3;
background-color: transparent;

.ellipsis();

&::before {
display: none;
}

.label {
margin: 0;
color: @admin-blue;
}
}

&.expanded {
.tab-menu-button {
background-color: @admin-blue;

.label {
color: @admin-white;
}
}
}
}

.permission-selector {
display: none;
clear: left;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,50 @@
.access-selector {
min-width: 100px;
width: 120px;

&.disabled {
.tab-menu-button {
cursor: default;
}
}

.tab-menu-button {
text-align: left;
margin: 2px 0 0;
padding: 4px 5px;
color: @admin-font-gray3;
background-color: transparent;
width: 100%;

.ellipsis();

&::before {
display: none;
}

.label {
margin: 0;
color: @admin-blue;
}
}

&.expanded {
.tab-menu-button {
background-color: @admin-blue;

.label {
color: @admin-white;
}
}
}

.menu {
padding: 38px 4px 4px;
padding: 36px 4px 4px;


&.upward {
padding: 4px 4px 36px;
}

.tab-menu-item {
padding: 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
}

.option-cell() {
.default-slick-cell-styling(1px 10px);
.default-slick-cell-styling(6px 8px);

&:hover,
&.active {
Expand All @@ -122,3 +122,11 @@
}
}
}

.filterable-listbox-wrapper-with-selected-view:not(.selection-limit-reached) {
.filter-and-list-container {
+ .selected-options:not(:empty) {
margin-top: 10px;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,11 @@
}

&.selected {
color: @admin-white;
background-color: @admin-blue;

.item-view * {
color: @admin-white;
}
}

&:focus-visible {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,7 @@
overflow: hidden;
z-index: 2;
display: block;
line-height: 20px;
padding: 8px 5px;
text-align: center;
color: @admin-white;
background-color: @admin-blue;
cursor: pointer;

* {
Expand All @@ -33,7 +29,6 @@
}

.label {
margin: 0 25px;
font-family: @admin-font-family;
text-decoration: none;
}
Expand Down
12 changes: 7 additions & 5 deletions src/main/resources/assets/admin/common/styles/reset.less
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,13 @@ input,
textarea,
select,
button {
&:focus {
outline-width: 2px;
outline-style: auto;
outline-offset: -1px;
-moz-outline-radius: 3px;
&:not([tabindex="-1"]) {
&:focus {
outline-width: 2px;
outline-style: auto;
outline-offset: -1px;
-moz-outline-radius: 3px;
}
}
}

Expand Down

0 comments on commit 0ddcf83

Please sign in to comment.