[wp-meta] [Making WordPress.org] #7373: WP Code Block Button is not properly sticky.

Making WordPress.org noreply at wordpress.org
Thu Dec 14 04:47:06 UTC 2023


#7373: WP Code Block Button is not properly sticky.
---------------------------+---------------------
 Reporter:  upadalavipul   |       Owner:  (none)
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:
Component:  Developer Hub  |  Resolution:
 Keywords:                 |
---------------------------+---------------------

Comment (by upadalavipul):

 For the above issues, the solution is need to remove the "--wp-global-
 header-height" variable in the below CSS.

 Files: https://developer.wordpress.org/wp-content/themes/wporg-
 developer/stylesheets/prism.css

 Added:


 {{{
 .wp-code-block-button-container {
   position: sticky;
   top: calc(var(--wp-admin--admin-bar--height));
   z-index: 1;
   display: flex;
   justify-content: right;
   padding: 1rem;
   background: #fff;
   border-width: 1px 1px 0;
   border-style: solid;
   border-color: #dcdcde;
   border-top-left-radius: 0.3em;
   border-top-right-radius: 0.3em;
 }
 }}}

-- 
Ticket URL: <https://meta.trac.wordpress.org/ticket/7373#comment:1>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org


More information about the wp-meta mailing list