agroptima-design-system 0.21.2 → 0.21.3-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agroptima-design-system",
3
- "version": "0.21.2",
3
+ "version": "0.21.3-beta.2",
4
4
  "scripts": {
5
5
  "dev": "npm run storybook",
6
6
  "storybook": "storybook dev -p 6006 --ci",
@@ -8,6 +8,7 @@
8
8
  background: none;
9
9
  cursor: default;
10
10
  padding: 0;
11
+ display: flex;
11
12
 
12
13
  > .icon {
13
14
  width: config.$icon-size-5x;
@@ -57,7 +57,10 @@
57
57
  &.primary {
58
58
  background: color_alias.$neutral-white;
59
59
  border-bottom: 1px solid color_alias.$neutral-color-200;
60
-
60
+ &:has(+ .active) {
61
+ // Remove border-bottom if next sibling is active
62
+ border-bottom: 1px solid transparent;
63
+ }
61
64
  &.active {
62
65
  background-color: transparent;
63
66
  border-top: 1px solid color_alias.$primary-color-600;
@@ -75,4 +75,8 @@
75
75
  box-shadow: inset -3px 0px 0px 0px color_alias.$primary-color-600;
76
76
  }
77
77
  }
78
+
79
+ .menu-item::-webkit-details-marker {
80
+ display: none;
81
+ }
78
82
  }
@@ -23,12 +23,10 @@ export function MenuDropdown({
23
23
  name,
24
24
  ...props
25
25
  }: MenuDropdownProps): React.JSX.Element {
26
- const cssClasses = classNames('menu-item', variant, className)
27
-
28
26
  return (
29
27
  <li tabIndex={0} role="menuitem" className="menu-dropdown" {...props}>
30
28
  <details open={isOpen} name={name}>
31
- <summary className={cssClasses}>
29
+ <summary className={classNames('menu-item', variant, className)}>
32
30
  {icon && <Icon name={icon} />}
33
31
  <span className="title">{title}</span>
34
32
  <Icon className="arrow" name="AngleDown" />
@@ -111,6 +111,7 @@ export const Menu = {
111
111
  description="Name of the videogame"
112
112
  />
113
113
  <CardMenuOption
114
+ active
114
115
  id="second-menu-option"
115
116
  href="#"
116
117
  icon="Edit"