Skip to content

Commit 3573048

Browse files
Merge pull request #282 from edx/andya/fix-asset-loading
Fix path loading issues when consuming the Pattern Library
2 parents cf79e4b + 8f1afee commit 3573048

File tree

5 files changed

+12
-6
lines changed

5 files changed

+12
-6
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ Nothing yet
55

66
- - -
77

8+
## 0.9.1 (2016-02-01)
9+
* introduce $pattern-library-path variable
10+
* FIX - always refer to edx-icons via $edx-icons-font-path
11+
12+
- - -
13+
814
## 0.9 (2016-02-01)
915
* adding tables pattern - for use in content and sortable table listings
1016

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "edx-pattern-library",
3-
"version": "0.9",
3+
"version": "0.9.1",
44
"authors": [
55
"edX UX Team <[email protected]>"
66
],

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "edx-pattern-library",
3-
"version": "0.9",
3+
"version": "0.9.1",
44
"author": "edX UX Team <[email protected]>",
55
"license": "Apache-2.0",
66
"description": "The (working) Visual, UI, and Front End Styleguide for edX Apps",

pattern-library/sass/global/_settings.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
// ----------------------------
1818
// #PATHS
1919
// ----------------------------
20-
$font-path: '../fonts' !default;
21-
$image-path: '../images' !default;
22-
20+
$pattern-library-path: '..' !default;
21+
$font-path: '#{$pattern-library-path}/fonts' !default;
22+
$image-path: '#{$pattern-library-path}/images' !default;
2323

2424
// ----------------------------
2525
// #UNITS

pattern-library/sass/patterns/_icons.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,6 +494,6 @@ cc;
494494

495495
@each $edx-icon in $edx-icons {
496496
.icon-fallback-img .icon-#{$edx-icon} {
497-
background: url('../fonts/edx-icons/fallback-img/#{$edx-icon}.svg') center center no-repeat;
497+
background: url('#{$edx-icons-font-path}/fallback-img/#{$edx-icon}.svg') center center no-repeat;
498498
}
499499
}

0 commit comments

Comments
 (0)