Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Styling of input groups wiht iron-input #120

Open
phun-ky opened this issue Oct 2, 2017 · 0 comments
Open

Styling of input groups wiht iron-input #120

phun-ky opened this issue Oct 2, 2017 · 0 comments

Comments

@phun-ky
Copy link

phun-ky commented Oct 2, 2017

We have a scenario where we have a styleguide requiring this setup to group an input-element and a button-element together, where the input has rounded corners left hand side, and the button has rounded corners right hand side.

<div class="rl-search rl-search--frontpage">
  <input type="search" placeholder="Search with number, name, etc." />
  <button class="rl-button rl-button--primary" type="button">Search</button>
</div>

But with iron-input requires this markup:

<div class="rl-search rl-search--frontpage">
  <iron-input .../>
    <input type="search" placeholder="Search with number, name, etc." />
  </iron-input>
  <button class="rl-button rl-button--primary" type="button">Search</button>
</div>

Resulting in a ruined UI, because the markup is not correct. I am reluctant to create a "hack" for this, using the iron-input selector, is there a better way to fix this?

Possibly related to #118

cc @estene

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant