diff --git a/ui_framework/components/menu/_menu.scss b/ui_framework/components/menu/_menu.scss index 7a63a80ba23a4..362d4c8284586 100644 --- a/ui_framework/components/menu/_menu.scss +++ b/ui_framework/components/menu/_menu.scss @@ -1,3 +1,10 @@ +/** + * 1. Allow class to be applied to `ul` and `ol` elements + */ +.kuiMenu { + padding-left: 0; /* 1 */ +} + .kuiMenu--contained { border: $globalBorderThin; @@ -6,7 +13,11 @@ } } +/** + * 1. Allow class to be applied to `li` elements + */ .kuiMenuItem { + list-style: none; /* 1 */ padding: 6px 0; & + & { diff --git a/ui_framework/dist/ui_framework.css b/ui_framework/dist/ui_framework.css index 481a363bf18d5..9177af2f54c67 100644 --- a/ui_framework/dist/ui_framework.css +++ b/ui_framework/dist/ui_framework.css @@ -2016,12 +2016,22 @@ body { font-size: 14px; font-weight: bold; } +/** + * 1. Allow class to be applied to `ul` and `ol` elements + * 2. Allow class to be applied to `li` elements + */ +.kuiMenu { + padding-left: 0; + /* 1 */ } + .kuiMenu--contained { border: 1px solid #E4E4E4; } .kuiMenu--contained .kuiMenuItem { padding: 6px 10px; } .kuiMenuItem { + list-style: none; + /* 2 */ padding: 6px 0; } .kuiMenuItem + .kuiMenuItem { border-top: 1px solid #E4E4E4; } diff --git a/ui_framework/doc_site/src/views/event/events_sandbox.html b/ui_framework/doc_site/src/views/event/events_sandbox.html index 22b7eb68d6360..750f34039e19b 100644 --- a/ui_framework/doc_site/src/views/event/events_sandbox.html +++ b/ui_framework/doc_site/src/views/event/events_sandbox.html @@ -17,8 +17,8 @@

-
-
+
    +
  • @@ -34,9 +34,9 @@

-
+ -
+
  • @@ -52,9 +52,9 @@

  • - + -
    +
  • @@ -70,8 +70,8 @@

  • - - + + diff --git a/ui_framework/doc_site/src/views/menu/menu.html b/ui_framework/doc_site/src/views/menu/menu.html index 9407b80786f30..78a9735801a9f 100644 --- a/ui_framework/doc_site/src/views/menu/menu.html +++ b/ui_framework/doc_site/src/views/menu/menu.html @@ -1,13 +1,13 @@ -
    -
    +
      +
    • Item A

      -
    + -
    +
  • Item B

    -
  • + -
    +
  • Item C

    -
  • -
    + + diff --git a/ui_framework/doc_site/src/views/menu/menu_contained.html b/ui_framework/doc_site/src/views/menu/menu_contained.html index 7d0866fc8887a..7ed3401a0128a 100644 --- a/ui_framework/doc_site/src/views/menu/menu_contained.html +++ b/ui_framework/doc_site/src/views/menu/menu_contained.html @@ -1,13 +1,13 @@ -
    -
    +
      +
    • Item A

      -
    + -
    +
  • Item B

    -
  • + -
    +
  • Item C

    -
  • -
    + +