@automattic/vip-design-system 2.4.4 → 2.4.5

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.
@@ -98,6 +98,7 @@ var MobileMenuTrigger = exports.MobileMenuTrigger = function MobileMenuTrigger(_
98
98
  sx: {
99
99
  display: display,
100
100
  alignItems: 'center',
101
+ flexShrink: 0,
101
102
  color: variant === 'inverse' ? 'button.primary.label.default' : 'button.tertiary.label.default',
102
103
  width: 38,
103
104
  height: 38,
@@ -25,7 +25,7 @@ var Logo = exports.Logo = function Logo(_ref) {
25
25
  sx: {
26
26
  width: 54,
27
27
  color: 'toolbar.brand',
28
- mr: 5,
28
+ flexShrink: 0,
29
29
  display: 'inline-block'
30
30
  },
31
31
  href: href,
@@ -4,7 +4,10 @@ exports.__esModule = true;
4
4
  exports.generateBreakpoints = void 0;
5
5
  var generateBreakpoints = exports.generateBreakpoints = function generateBreakpoints(breakpoints) {
6
6
  var values = Object.values(breakpoints);
7
- return values.map(function (bp) {
7
+ return values.map(function (bp, index) {
8
+ if (index === 0) {
9
+ return "0px";
10
+ }
8
11
  return bp + "px";
9
12
  });
10
13
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@automattic/vip-design-system",
3
- "version": "2.4.4",
3
+ "version": "2.4.5",
4
4
  "main": "build/system/index.js",
5
5
  "scripts": {
6
6
  "build-storybook": "storybook build",
@@ -108,6 +108,7 @@ export const MobileMenuTrigger = ( {
108
108
  sx={ {
109
109
  display,
110
110
  alignItems: 'center',
111
+ flexShrink: 0,
111
112
  color:
112
113
  variant === 'inverse' ? 'button.primary.label.default' : 'button.tertiary.label.default',
113
114
  width: 38,
@@ -23,7 +23,7 @@ export const Logo = ( { className, as = 'a', href }: LogoProps ) => (
23
23
  sx={ {
24
24
  width: 54,
25
25
  color: 'toolbar.brand',
26
- mr: 5,
26
+ flexShrink: 0,
27
27
  display: 'inline-block',
28
28
  } }
29
29
  href={ href }
@@ -5,5 +5,11 @@ type Breakpoints = {
5
5
  export const generateBreakpoints = ( breakpoints: Breakpoints ) => {
6
6
  const values = Object.values( breakpoints );
7
7
 
8
- return values.map( bp => `${ bp }px` );
8
+ return values.map( ( bp, index ) => {
9
+ if ( index === 0 ) {
10
+ return `0px`;
11
+ }
12
+
13
+ return `${ bp }px`;
14
+ } );
9
15
  };