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

feat(chips): add inputPosition input to change its position to before or after (closes #990) #1061

Merged
merged 6 commits into from
Jan 4, 2018

Conversation

emoralesb05
Copy link
Contributor

Description

To allow a bit more flexibility, we added a new input to change where the input is going to be positioned.. whether is before or after the list of chips regardless if its stacked or not.

What's included?

  • [inputPosition] input with before and after values

Test Steps

  • npm run serve
  • Go to chips demo
  • See before option change

General Tests for Every PR

  • npm run serve:prod still works.
  • npm run tslint passes.
  • npm run stylelint passes.
  • npm test passes and code coverage is not lower.
  • npm run build:release still works.
Screenshots or link to StackBlitz/Plunker

image

image

closes #990

@jeremysmartt jeremysmartt self-assigned this Jan 3, 2018
Copy link
Collaborator

@jeremysmartt jeremysmartt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Trying to do npm run build:release

gives:

[13:30:32] 'rollup-code' errored after 541 ms
[13:30:32] Error: Octal literal in strict mode
at error (/Users/js186150/Documents/public/covalent/node_modules/rollup/dist/rollup.js:170:12)
at Module.error$1 [as error] (/Users/js186150/Documents/public/covalent/node_modules/rollup/dist/rollup.js:8007:2)
at tryParse (/Users/js186150/Documents/public/covalent/node_modules/rollup/dist/rollup.js:7710:10)
at new Module (/Users/js186150/Documents/public/covalent/node_modules/rollup/dist/rollup.js:7745:14)
at /Users/js186150/Documents/public/covalent/node_modules/rollup/dist/rollup.js:9495:17

@emoralesb05
Copy link
Contributor Author

Fixed the build and linter. So everything should be fine now.

@emoralesb05 emoralesb05 merged commit 70887dc into develop Jan 4, 2018
@emoralesb05 emoralesb05 deleted the feature/chips-input-pos branch January 4, 2018 21:50
kriswinbush pushed a commit to kriswinbush/covalent that referenced this pull request Feb 20, 2020
…re or after (closes Teradata#990) (Teradata#1061)

* feat(chips): add `inputPosition` input to change its position to before or after

* feat(chips): add unit test to see if the class gets properly added for before position

* chore(): move rtl mark to jsonformatter theme since build is failing when css is inside compiled js

* chore(): fix stylelint issue

* chore(): fix build error for covalent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

make td-chips and stacked more flexible using containers
2 participants