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

inputStyle and inputStyleClass for Chips #2065

Closed
lebnic opened this issue Feb 13, 2017 · 3 comments
Closed

inputStyle and inputStyleClass for Chips #2065

lebnic opened this issue Feb 13, 2017 · 3 comments
Assignees
Labels
Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add
Milestone

Comments

@lebnic
Copy link

lebnic commented Feb 13, 2017

I'm submitting a ... (check one with "x")

[x] bug report => Search github for a similar issue or PR before submitting
[ ] feature request => Please check if request is not on the roadmap already https://github.com/primefaces/primeng/wiki/Roadmap
[ ] support request => Please do not submit support request here, instead see http://forum.primefaces.org/viewforum.php?f=35

Plunkr Case (Bug Reports)
chips not available yet, sorry...

Current behavior

Chips placeholder get truncated for long string placeholders

Expected behavior

Placeholder should not be truncated

Minimal reproduction of the problem with instructions

for a chips component, let: placeholder="This is a very very very very very very very very very very, very very relatively long string... But it get truncated, so you can't read this part in chips placeholder..."

What is the motivation / use case for changing the behavior?

Basic placeholders ( not too long, really... ) get truncated, eg: "Click her to add a new element"

Please tell us about your environment:

Linux

  • Angular version: 2.0.X

3.10.10

  • PrimeNG version: 2.0.X

2.0.0-rc.1

  • Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]

Chrome

  • Language: [all | TypeScript X.X | ES6/7 | ES5]

  • Node (for AoT issues): node --version =

@akbarzg
Copy link

akbarzg commented Feb 18, 2017

This also happens for autocomplete (<p:autoComplete multiple="true" .../>) with multiple attribute set to true.

@sourabh8003
Copy link

@lebnic
@akbarzg

Hey Guys, I can able to fix this with a super simple steps. Place holder truncated due to some of the css properties there is no other issues in their components and libraries. See the css properties and selector below what primeNg currently have:

1).

.ui-autocomplete-input-token {
display: inline-block;
vertical-align: middle;
list-style-type: none;
margin: 0 0 0 .125em;
padding: .25em .25em .25em 0;
}

2.)
.ui-autocomplete-input-token .ui-inputtext {
border: 0 none;
width: 10em;
outline: medium none;
background-color: transparent;
margin: 0;
padding: 0;
box-shadow: none;
-moz-border-radius: 0;
-webkit-border-radius: 0;
border-radius: 0;
}

At first class add one new attribute ( width: 100%; ) you can also add this attribute in the relevant chips class if this is happening with chips components. And you can also see they are using the fixed width in the second class at point (2) make it ( width: 100%; ) also. Then the issue will solve for you if another css properties not overrides your new properties. If this happens then use !important followed by you property.

@cagataycivici cagataycivici added the Type: Bug Issue contains a bug related to a specific component. Something about the component is not working label Jun 20, 2017
@cagataycivici cagataycivici self-assigned this Jun 20, 2017
@cagataycivici cagataycivici added this to the 4.1.0 milestone Jun 20, 2017
@cagataycivici
Copy link
Member

width: 100% wraps to the next line, so better if this is handled by app side so added inputStyle and inputStyleClass to customize the input easily like [inputStyle]="{width:...}"

@cagataycivici cagataycivici changed the title Chips: long placeholders are truncated inputStyle and inputStyleClass for Chips Jun 28, 2017
@cagataycivici cagataycivici added Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add and removed Type: Bug Issue contains a bug related to a specific component. Something about the component is not working labels Jun 28, 2017
cagataycivici pushed a commit that referenced this issue Jun 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add
Projects
None yet
Development

No branches or pull requests

4 participants