Skip to content
This repository was archived by the owner on Apr 30, 2021. It is now read-only.

Commit 92af3de

Browse files
committed
Bump to v0.2.3
1 parent 3230c00 commit 92af3de

File tree

10 files changed

+53
-21
lines changed

10 files changed

+53
-21
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11

22

3+
# 0.2.3 - 2015-5-4
4+
5+
- Add support for CSS4 descendant selector `>>` syntax
6+
7+
38
# 0.2.2 - 2015-5-1
49

510
- Automatically prefix any variables defined in `options.variables` with `--` (according to CSS custom property syntax).

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ CSS variables or CSS Custom Properties limited subset polyfill/shim.
88

99
We strive for the most complete transformation but we/no plugin can achieve true complete parity according to the [speficification](http://dev.w3.org/csswg/css-variables/) because of the DOM cascade unknowns.
1010

11-
## Latest Version: 0.2.2
11+
## Latest Version: 0.2.3
1212
### [Changelog](https://github.com/MadLittleMods/postcss-css-variables/blob/master/CHANGELOG.md)
1313

1414
### Install

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// PostCSS CSS Variables (postcss-css-variables)
2-
// v0.2.2
2+
// v0.2.3
33
//
44
// https://github.com/MadLittleMods/postcss-css-variables
55

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "postcss-css-variables",
3-
"version": "0.2.2",
3+
"version": "0.2.3",
44
"description": "PostCSS plugin to transform CSS Custom Properties(CSS variables) syntax into a static representation",
55
"keywords": [
66
"postcss",

playground/build.js

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13948,7 +13948,7 @@ System.register("npm:postcss@4.1.8/lib/previous-map", ["npm:js-base64@2.1.8", "n
1394813948
return module.exports;
1394913949
});
1395013950

13951-
System.register("npm:postcss-css-variables@0.2.2/index", ["npm:postcss@4.1.8", "npm:extend@2.0.1", "github:jspm/nodelibs-process@0.1.1"], true, function(require, exports, module) {
13951+
System.register("npm:postcss-css-variables@0.2.3/index", ["npm:postcss@4.1.8", "npm:extend@2.0.1", "github:jspm/nodelibs-process@0.1.1"], true, function(require, exports, module) {
1395213952
var global = System.global,
1395313953
__define = global.define;
1395413954
global.define = undefined;
@@ -13983,7 +13983,9 @@ System.register("npm:postcss-css-variables@0.2.2/index", ["npm:postcss@4.1.8", "
1398313983
}
1398413984
return false;
1398513985
}).map(function(piece) {
13986-
return piece.trim();
13986+
return piece.trim().replace(/\s*?>>\s*?/, function(match) {
13987+
return '';
13988+
});
1398713989
});
1398813990
scopeStringPieces.unshift.apply(scopeStringPieces, descendantPieces);
1398913991
}
@@ -15753,11 +15755,11 @@ System.register("npm:postcss@4.1.8/lib/input", ["npm:postcss@4.1.8/lib/css-synta
1575315755
return module.exports;
1575415756
});
1575515757

15756-
System.register("npm:postcss-css-variables@0.2.2", ["npm:postcss-css-variables@0.2.2/index"], true, function(require, exports, module) {
15758+
System.register("npm:postcss-css-variables@0.2.3", ["npm:postcss-css-variables@0.2.3/index"], true, function(require, exports, module) {
1575715759
var global = System.global,
1575815760
__define = global.define;
1575915761
global.define = undefined;
15760-
module.exports = require("npm:postcss-css-variables@0.2.2/index");
15762+
module.exports = require("npm:postcss-css-variables@0.2.3/index");
1576115763
global.define = __define;
1576215764
return module.exports;
1576315765
});
@@ -18833,7 +18835,7 @@ System.register('build/js/dispatcher/AppDispatcher', ['npm:flux@2.0.3'], functio
1883318835
}
1883418836
};
1883518837
});
18836-
System.register('build/js/stores/PlaygroundStore', ['build/js/dispatcher/AppDispatcher', 'build/js/constants/PlaygroundConstants', 'npm:events@1.0.2', 'npm:object-assign@2.0.0', 'npm:postcss@4.1.8', 'npm:postcss-css-variables@0.2.2'], function (_export) {
18838+
System.register('build/js/stores/PlaygroundStore', ['build/js/dispatcher/AppDispatcher', 'build/js/constants/PlaygroundConstants', 'npm:events@1.0.2', 'npm:object-assign@2.0.0', 'npm:postcss@4.1.8', 'npm:postcss-css-variables@0.2.3'], function (_export) {
1883718839
var AppDispatcher, PlaygroundConstants, events, assign, postcss, cssvariables, EventEmitter, CHANGE_EVENT, playgroundProcessor, postcssInputText, postcssOutputResult, postcssProcessingError, PlaygroundStore;
1883818840

1883918841
function updateInput(input) {
@@ -18866,8 +18868,8 @@ System.register('build/js/stores/PlaygroundStore', ['build/js/dispatcher/AppDisp
1886618868
assign = _npmObjectAssign200['default'];
1886718869
}, function (_npmPostcss418) {
1886818870
postcss = _npmPostcss418['default'];
18869-
}, function (_npmPostcssCssVariables022) {
18870-
cssvariables = _npmPostcssCssVariables022['default'];
18871+
}, function (_npmPostcssCssVariables023) {
18872+
cssvariables = _npmPostcssCssVariables023['default'];
1887118873
}],
1887218874
execute: function () {
1887318875
'use strict';
@@ -18997,7 +18999,14 @@ System.register('build/js/components/PlaygroundApp', ['npm:babel-runtime@5.2.6/h
1899718999

1899819000
var parsingErrorMarkup;
1899919001
if (this.state.postcssOutputResult.error) {
19000-
parsingErrorMarkup = React.createElement('div', { className: 'postcss-editor-pane-error' }, React.createElement('div', { className: 'postcss-editor-pane-error-message' }, this.state.postcssOutputResult.error.toString()));
19002+
parsingErrorMarkup = React.createElement('div', {
19003+
className: 'postcss-editor-pane-error',
19004+
// Live region attributes: http://www.smashingmagazine.com/2015/04/27/its-alive-apps-that-feed-back-accessibly/
19005+
'aria-live': 'polite',
19006+
role: 'status'
19007+
}, React.createElement('div', {
19008+
className: 'postcss-editor-pane-error-message'
19009+
}, this.state.postcssOutputResult.error.toString()));
1900119010
}
1900219011

1900319012
return React.createElement('div', { className: 'playground-app-wrapper' }, React.createElement('header', {

playground/build.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

playground/build/js/components/PlaygroundApp.js

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,17 @@ export default class PlaygroundApp extends React.Component {
5151
var parsingErrorMarkup;
5252
if(this.state.postcssOutputResult.error) {
5353
parsingErrorMarkup = (
54-
React.createElement("div", {className: "postcss-editor-pane-error"},
55-
React.createElement("div", {className: "postcss-editor-pane-error-message"}, this.state.postcssOutputResult.error.toString())
54+
React.createElement("div", {
55+
className: "postcss-editor-pane-error",
56+
// Live region attributes: http://www.smashingmagazine.com/2015/04/27/its-alive-apps-that-feed-back-accessibly/
57+
"aria-live": "polite",
58+
role: "status"
59+
},
60+
React.createElement("div", {
61+
className: "postcss-editor-pane-error-message"
62+
},
63+
this.state.postcssOutputResult.error.toString()
64+
)
5665
)
5766
);
5867
}

playground/config.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ System.config({
213213
"github:jspm/nodelibs-path@0.1.0/index",
214214
"npm:postcss@4.1.8/lib/container",
215215
"npm:postcss@4.1.8/lib/previous-map",
216-
"npm:postcss-css-variables@0.2.2/index",
216+
"npm:postcss-css-variables@0.2.3/index",
217217
"build/js/components/EditorTextarea",
218218
"github:jspm/nodelibs-process@0.1.1",
219219
"npm:react@0.13.2/lib/ReactElement",
@@ -231,7 +231,7 @@ System.config({
231231
"github:jspm/nodelibs-path@0.1.0",
232232
"npm:postcss@4.1.8/lib/at-rule",
233233
"npm:postcss@4.1.8/lib/input",
234-
"npm:postcss-css-variables@0.2.2",
234+
"npm:postcss-css-variables@0.2.3",
235235
"npm:react@0.13.2/lib/invariant",
236236
"npm:react@0.13.2/lib/ReactFragment",
237237
"npm:react@0.13.2/lib/ReactUpdateQueue",
@@ -287,7 +287,7 @@ System.config({
287287
"keymirror": "npm:keymirror@0.1.1",
288288
"object-assign": "npm:object-assign@2.0.0",
289289
"postcss": "npm:postcss@4.1.8",
290-
"postcss-css-variables": "npm:postcss-css-variables@0.2.2",
290+
"postcss-css-variables": "npm:postcss-css-variables@0.2.3",
291291
"react": "npm:react@0.13.2",
292292
"wjbryant/taboverride": "github:wjbryant/taboverride@4.0.2",
293293
"github:jspm/nodelibs-assert@0.1.0": {
@@ -415,7 +415,7 @@ System.config({
415415
"npm:path-browserify@0.0.0": {
416416
"process": "github:jspm/nodelibs-process@0.1.1"
417417
},
418-
"npm:postcss-css-variables@0.2.2": {
418+
"npm:postcss-css-variables@0.2.3": {
419419
"extend": "npm:extend@2.0.1",
420420
"postcss": "npm:postcss@4.1.8",
421421
"process": "github:jspm/nodelibs-process@0.1.1"

playground/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"keymirror": "npm:keymirror@^0.1.1",
1111
"object-assign": "npm:object-assign@^2.0.0",
1212
"postcss": "npm:postcss@^4.1.8",
13-
"postcss-css-variables": "npm:postcss-css-variables@^0.2.2",
13+
"postcss-css-variables": "npm:postcss-css-variables@^0.2.3",
1414
"react": "npm:react@^0.13.2",
1515
"wjbryant/taboverride": "github:wjbryant/taboverride@^4.0.2"
1616
},

playground/src/js/components/PlaygroundApp.js

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,17 @@ export default class PlaygroundApp extends React.Component {
5151
var parsingErrorMarkup;
5252
if(this.state.postcssOutputResult.error) {
5353
parsingErrorMarkup = (
54-
<div className="postcss-editor-pane-error">
55-
<div className="postcss-editor-pane-error-message">{this.state.postcssOutputResult.error.toString()}</div>
54+
<div
55+
className="postcss-editor-pane-error"
56+
// Live region attributes: http://www.smashingmagazine.com/2015/04/27/its-alive-apps-that-feed-back-accessibly/
57+
aria-live="polite"
58+
role="status"
59+
>
60+
<div
61+
className="postcss-editor-pane-error-message"
62+
>
63+
{this.state.postcssOutputResult.error.toString()}
64+
</div>
5665
</div>
5766
);
5867
}

0 commit comments

Comments
 (0)