@teleporthq/teleport-plugin-css
Advanced tools
Comparing version
@@ -43,11 +43,2 @@ import { | ||
}, | ||
someClassId: { | ||
type: 'reusable-project-style-map', | ||
content: { | ||
background: staticNode('red'), | ||
color: staticNode('blue'), | ||
}, | ||
className: 'secondaryButton', | ||
subselectors: ' h1', | ||
}, | ||
conditionalButton: { | ||
@@ -105,3 +96,2 @@ type: 'reusable-project-style-map', | ||
expect(content).toContain('.conditionalButton:hover') | ||
expect(content).toContain('.secondaryButton h1') | ||
expect(content).toContain('@media(max-width: 991px)') | ||
@@ -108,0 +98,0 @@ expect(content).not.toContain('5ecfa1233b8e50f60ea2b64b') |
{ | ||
"name": "@teleporthq/teleport-plugin-css", | ||
"version": "0.27.3-alpha.3", | ||
"version": "0.27.3", | ||
"description": "A plugin for creating the styles into external css files", | ||
@@ -28,7 +28,7 @@ "author": "teleportHQ", | ||
"@babel/types": "^7.5.5", | ||
"@teleporthq/teleport-plugin-common": "^0.27.3-alpha.3", | ||
"@teleporthq/teleport-shared": "^0.27.3-alpha.3", | ||
"@teleporthq/teleport-types": "^0.27.3-alpha.3" | ||
"@teleporthq/teleport-plugin-common": "^0.27.3", | ||
"@teleporthq/teleport-shared": "^0.27.3", | ||
"@teleporthq/teleport-types": "^0.27.3" | ||
}, | ||
"gitHead": "776fa2beea05204929e2ef93ab70aa619fe7b0e3" | ||
"gitHead": "14f69b861cb0838d502a5ba226bb7cb5c1291fbb" | ||
} |
@@ -142,3 +142,3 @@ import { StringUtils, UIDLUtils } from '@teleporthq/teleport-shared' | ||
if (Object.keys(dynamicStyles).length > 0) { | ||
/* If dynamic styles are on nested-styles they are unfortunately lost, | ||
/* If dynamic styles are on nested-styles they are unfortunately lost, | ||
since inline style does not support that */ | ||
@@ -210,3 +210,3 @@ if (templateStyle === 'html') { | ||
if (defaultPropValue) { | ||
/* Changing the default value of the prop. | ||
/* Changing the default value of the prop. | ||
When forceScoping is enabled the classnames change. So, we need to change the default prop too. */ | ||
@@ -213,0 +213,0 @@ propDefinitions[styleRef.content.content.content.id].defaultValue = getClassName( |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
154385
-0.43%1774
-0.56%