[wp-trac] [WordPress Trac] #47366: Privacy Policy page dropdown needs a max-width

WordPress Trac noreply at wordpress.org
Mon Aug 26 06:26:57 UTC 2019


#47366: Privacy Policy page dropdown needs a max-width
-------------------------------------------------+-------------------------
 Reporter:  SergeyBiryukov                       |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  5.3
Component:  Privacy                              |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  good-first-bug has-screenshots has-  |     Focuses:  ui,
  patch                                          |  administration
-------------------------------------------------+-------------------------

Comment (by paresh07):

 == **Issue with the current approach:**

 With the CSS we can only handle the width of the select box but we can not
 change the width of select option dropdown list. So in case of a large
 page title, we can adjust the width of the select box but its width will
 not match with the dropdown options list. See screenshot 1 in the
 attachments.


 [[Image(2019-08-25.png)]]




 == **Suggestion:**


 Show the page title up to some characters in the select option & we can
 display the full title on hover using the "title" attribute of HTML. Se
 the screenshot 2.

 [[Image(Screenshot-2.png)]]


 == **Example:**

 <option title="This is a sample page with very very long title"
 value="1234">This is a sample page...</option>

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/47366#comment:18>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list