diff --git a/developer_manual/design/html.rst b/developer_manual/design/html.rst index 8fb8198480a..51c8add6a11 100644 --- a/developer_manual/design/html.rst +++ b/developer_manual/design/html.rst @@ -21,6 +21,8 @@ Please use the html5 ``progress`` element. +.. _checkboxes-and-radios: + Checkboxes and radios ====================== diff --git a/developer_manual/design/popovermenu.rst b/developer_manual/design/popovermenu.rst index 47000e9c0f4..fd47b8855e3 100644 --- a/developer_manual/design/popovermenu.rst +++ b/developer_manual/design/popovermenu.rst @@ -24,35 +24,47 @@ Basic layout
Technical details ================== -* The only allowed menu items elements are **a** and **button**. +* The only allowed menu items elements are **a**, **button** and **span** for the checkbox and radio only. * You can mix between a and button on the same menu (in case of form or direct link) like the example above * You need to put the entire menu just after the three dot icon ``
...
`` * You do not need JS, CSS only is ok for positioning. JS is **still** required to handle the hide/show. @@ -60,6 +72,8 @@ Technical details * Only **one level** of menu is allowed. * Every entry **needs** to have its own icon. This greatly improves the UX. * The required **right** distance to the border (or padding, whatever you want to use) of the three-dot icon should be 14px (5 for menu margin and 6 for arrow position) +* The ``span`` element **must** have the ``menuitem`` class. +* The checkbox/radio must use the :ref:`nextcloud custom ` .. image:: ../images/popover-position.png diff --git a/developer_manual/images/popovermenu.png b/developer_manual/images/popovermenu.png index bc5cc61de4f..bcdb1511b1f 100644 Binary files a/developer_manual/images/popovermenu.png and b/developer_manual/images/popovermenu.png differ