[wp-trac] [WordPress Trac] #65302: Model Window Insert Media Insert button not visible on default color scheme
WordPress Trac
noreply at wordpress.org
Tue May 26 09:47:39 UTC 2026
#65302: Model Window Insert Media Insert button not visible on default color scheme
-------------------------------+---------------------
Reporter: neo2k23 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 7.0.1
Component: General | Version: trunk
Severity: normal | Resolution:
Keywords: reporter-feedback | Focuses:
-------------------------------+---------------------
Comment (by neo2k23):
I think i know the why.
The admin-scheme.css uses the body element
body.admin-color-modern {
--wp-admin-theme-color: #3858e9;
--wp-admin-theme-color--rgb: 56, 88, 233;
--wp-admin-theme-color-darker-10: rgb(33.0384615385,
68.7307692308, 230.4615384615);
--wp-admin-theme-color-darker-10--rgb: 33.0384615385,
68.7307692308, 230.4615384615;
--wp-admin-theme-color-darker-20: rgb(23.6923076923,
58.1538461538, 214.3076923077);
--wp-admin-theme-color-darker-20--rgb: 23.6923076923,
58.1538461538, 214.3076923077;
--wp-admin-border-width-focus: 2px;
}
The popup i have has a tb_window iframe TB_iframeContent with a body and
on top of that the media selector popup. All the default scripts are
loaded before the body after iframe TB_iframeContent
The media selector however has somehow lost the connection between the
body within the iframe. so body.admin-color-modern is not applied.
I have to add that css myself to the iframe wrapper and then it works>
If i add
.wp-core-ui .button-primary {
--wp-admin-theme-color: #3858e9;
--wp-admin-theme-color--rgb: 56, 88, 233;
--wp-admin-theme-color-darker-10: rgb(33.0384615385,
68.7307692308, 230.4615384615);
--wp-admin-theme-color-darker-10--rgb: 33.0384615385,
68.7307692308, 230.4615384615;
--wp-admin-theme-color-darker-20: rgb(23.6923076923,
58.1538461538, 214.3076923077);
--wp-admin-theme-color-darker-20--rgb: 23.6923076923,
58.1538461538, 214.3076923077;
--wp-admin-border-width-focus: 2px;
}
To the theme shortcode css it works again.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/65302#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list