Skip to content

Commit a9b07ce

Browse files
Antoliny0919sarahboyce
authored andcommitted
Fixed #35924 -- Removed the "choose/remove all" button icons in the FilteredSelectMultiple widget.
1 parent 2980627 commit a9b07ce

3 files changed

Lines changed: 6 additions & 46 deletions

File tree

django/contrib/admin/static/admin/css/rtl.css

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -242,18 +242,10 @@ fieldset .fieldBox {
242242
background-position: 0 -168px;
243243
}
244244

245-
.selector-chooseall {
246-
background: url(../img/selector-icons.svg) right -128px no-repeat;
247-
}
248-
249245
:enabled.selector-chooseall:focus, :enabled.selector-chooseall:hover {
250246
background-position: 100% -144px;
251247
}
252248

253-
.selector-clearall {
254-
background: url(../img/selector-icons.svg) 0 -160px no-repeat;
255-
}
256-
257249
:enabled.selector-clearall:focus, :enabled.selector-clearall:hover {
258250
background-position: 0 -176px;
259251
}

django/contrib/admin/static/admin/css/widgets.css

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -162,21 +162,21 @@
162162

163163
.selector-chooseall, .selector-clearall {
164164
display: inline-block;
165-
height: 16px;
166165
text-align: left;
166+
padding: 4px 5px;
167167
margin: 0 auto;
168168
overflow: hidden;
169-
font-weight: bold;
170-
line-height: 16px;
171-
color: var(--body-quiet-color);
169+
color: var(--button-fg);
170+
background-color: var(--button-bg);
172171
text-decoration: none;
173172
opacity: 0.55;
174173
border: none;
174+
border-radius: 4px;
175175
}
176176

177177
:enabled.selector-chooseall:focus, :enabled.selector-clearall:focus,
178178
:enabled.selector-chooseall:hover, :enabled.selector-clearall:hover {
179-
color: var(--link-fg);
179+
background-color: var(--button-hover-bg);
180180
}
181181

182182
:enabled.selector-chooseall, :enabled.selector-clearall {
@@ -187,22 +187,10 @@
187187
cursor: pointer;
188188
}
189189

190-
.selector-chooseall {
191-
padding: 0 18px 0 0;
192-
background: url(../img/selector-icons.svg) right -160px no-repeat;
193-
cursor: default;
194-
}
195-
196190
:enabled.selector-chooseall:focus, :enabled.selector-chooseall:hover {
197191
background-position: 100% -176px;
198192
}
199193

200-
.selector-clearall {
201-
padding: 0 0 0 18px;
202-
background: url(../img/selector-icons.svg) 0 -128px no-repeat;
203-
cursor: default;
204-
}
205-
206194
:enabled.selector-clearall:focus, :enabled.selector-clearall:hover {
207195
background-position: 0 -144px;
208196
}

django/contrib/admin/static/admin/img/selector-icons.svg

Lines changed: 1 addition & 21 deletions
Loading

0 commit comments

Comments
 (0)