Skip to content

Commit

Permalink
Merge pull request #43 from PolymerElements/fix-dragons
Browse files Browse the repository at this point in the history
stop bringing in the paper-styles kitchen sink
  • Loading branch information
notwaldorf committed Nov 18, 2015
2 parents dab73d4 + 706aa0b commit 1db7676
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
3 changes: 2 additions & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"ignore": [],
"dependencies": {
"iron-input": "PolymerElements/iron-input#^1.0.0",
"iron-flex-layout": "PolymerElements/iron-flex-layout#^1.0.0",
"iron-form-element-behavior": "PolymerElements/iron-form-element-behavior#^1.0.0",
"paper-input": "PolymerElements/paper-input#^1.0.0",
"paper-styles": "PolymerElements/paper-styles#^1.0.0",
Expand All @@ -31,7 +32,7 @@
"iron-component-page": "PolymerElements/iron-component-page#^1.0.0",
"iron-test-helpers": "PolymerElements/iron-test-helpers#^1.0.0",
"test-fixture": "PolymerElements/test-fixture#^1.0.0",
"web-component-tester": "*",
"web-component-tester": "polymer/web-component-tester#^3.4.0",
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
}
}
2 changes: 0 additions & 2 deletions demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@

<script src="../../webcomponentsjs/webcomponents-lite.js"></script>
<link rel="import" href="../gold-phone-input.html">

<link rel="stylesheet" href="../../paper-styles/paper-styles.html">
<link rel="import" href="../../paper-styles/demo-pages.html">
</head>
<body unresolved>
Expand Down
15 changes: 12 additions & 3 deletions gold-phone-input.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@
<link rel="import" href="../paper-input/paper-input-behavior.html">
<link rel="import" href="../paper-input/paper-input-container.html">
<link rel="import" href="../paper-input/paper-input-error.html">
<link rel="import" href="../paper-styles/typography.html">
<link rel="import" href="../iron-input/iron-input.html">
<link rel="import" href="../iron-form-element-behavior/iron-form-element-behavior.html">
<link rel="import" href="../iron-flex-layout/classes/iron-flex-layout.html">
<link rel="import" href="../iron-flex-layout/iron-flex-layout.html">

<!--
`<gold-phone-input>` is a single-line text field with Material Design styling
Expand Down Expand Up @@ -75,13 +76,21 @@
@apply(--gold-phone-input-country-code);
}

.container {
@apply(--layout-horizontal);
}

/* TODO(notwaldorf): The style applied by paper-input-container is more
* specific, and we need the important to override it. This will go away
* once we can refactor this element to use the paper-input suffix */
label {
left: 40px !important;
}

input {
@apply(--layout-flex);
}

</style>

<template>
Expand All @@ -93,10 +102,10 @@

<label hidden$="[[!label]]">[[label]]</label>

<div class="horizontal layout">
<div class="container">
<span class="country-code">+[[countryCode]]</span>

<input is="iron-input" id="input" class="flex"
<input is="iron-input" id="input"
aria-labelledby$="[[_ariaLabelledBy]]"
aria-describedby$="[[_ariaDescribedBy]]"
required$="[[required]]"
Expand Down
2 changes: 0 additions & 2 deletions test/basic.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,10 @@
<script src="../../webcomponentsjs/webcomponents-lite.js"></script>

<script src="../../web-component-tester/browser.js"></script>
<script src="../../test-fixture/test-fixture-mocha.js"></script>

<script src="../../iron-test-helpers/test-helpers.js"></script>
<script src="../../iron-test-helpers/mock-interactions.js"></script>

<link rel="import" href="../../test-fixture/test-fixture.html">
<link rel="import" href="../gold-phone-input.html">

</head>
Expand Down

0 comments on commit 1db7676

Please sign in to comment.