hmrc / assets-frontend

Deprecated static assets for frontends on MDTP.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Delete functionality for add-remove enhancement inconsistant

MarkPaxton opened this issue · comments

Re: http://hmrc.github.io/assets-frontend/section-add-remove.html

There is no way to delete the first line, but you may delete any other. If you make a mistake on the first line and want to remove it you cant without a workaround.

@MarkPaxton this is were context would help. I think the initial implementation always wanted 1 input on the page. It would be worth speaking with the designer or devs on the teams slack channel

So if the functionality of the first input being removed is needed this would become a chat to the teams who use it and a PR with an update to tests

It's just a limitation as a general purpose component that might prevent reuse, I have no need to change it

Sure, another thing that design and ourselves have spoken about is providing context besides components/design patterns on the component library, why is X like this. That will then help inform people around decisions made.