Skip to content

Commit

Permalink
set svg both height and width
Browse files Browse the repository at this point in the history
add polyfill for IE (demo site)
  • Loading branch information
changhuixu committed Sep 18, 2018
1 parent 7ab2e6e commit 0c88578
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 16 deletions.
2 changes: 1 addition & 1 deletion projects/uiowa/date-range-picker/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@uiowa/date-range-picker",
"version": "1.1.0",
"version": "1.1.1",
"author": "Changhui Xu <[email protected]>",
"contributors": [
"Jacob Feuerbach <[email protected]>"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
svg {
width: 1rem;
height: 1rem;
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,5 @@

svg {
width: 1rem;
height: 1rem;
}
3 changes: 3 additions & 0 deletions src/app/app.component.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
<div class="container my-5">
<div class="row">
<a title="source code" href="https://github.com/changhuixu/date-range-picker">GitHub Repo</a>
</div>
<div class="row">
<section class="col-12 col-sm-6 col-lg-4 mb-4">
<strong>Max Date Example and opens in the past</strong>
Expand Down
30 changes: 15 additions & 15 deletions src/polyfills.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,26 +19,26 @@
*/

/** IE9, IE10 and IE11 requires all of the following polyfills. **/
// import 'core-js/es6/symbol';
// import 'core-js/es6/object';
// import 'core-js/es6/function';
// import 'core-js/es6/parse-int';
// import 'core-js/es6/parse-float';
// import 'core-js/es6/number';
// import 'core-js/es6/math';
// import 'core-js/es6/string';
// import 'core-js/es6/date';
// import 'core-js/es6/array';
// import 'core-js/es6/regexp';
// import 'core-js/es6/map';
// import 'core-js/es6/weak-map';
// import 'core-js/es6/set';
import 'core-js/es6/symbol';
import 'core-js/es6/object';
import 'core-js/es6/function';
import 'core-js/es6/parse-int';
import 'core-js/es6/parse-float';
import 'core-js/es6/number';
import 'core-js/es6/math';
import 'core-js/es6/string';
import 'core-js/es6/date';
import 'core-js/es6/array';
import 'core-js/es6/regexp';
import 'core-js/es6/map';
import 'core-js/es6/weak-map';
import 'core-js/es6/set';

/** IE10 and IE11 requires the following for NgClass support on SVG elements */
// import 'classlist.js'; // Run `npm install --save classlist.js`.

/** IE10 and IE11 requires the following for the Reflect API. */
// import 'core-js/es6/reflect';
import 'core-js/es6/reflect';


/** Evergreen browsers require these. **/
Expand Down

0 comments on commit 0c88578

Please sign in to comment.