notie icon indicating copy to clipboard operation
notie copied to clipboard

No control over confirm button placement, layout.

Open ryansh100 opened this issue 8 years ago • 3 comments

It would be very helpful to be able to assign the confirm button as the right button. It would also be very helpful from a styling perspective to wrap the confirm/reject buttons in a controllable element like another div.

ryansh100 avatar Mar 20 '17 19:03 ryansh100

See https://github.com/jaredreich/notie/pull/123

ryansh100 avatar Mar 21 '17 16:03 ryansh100

Thanks for the PR. I agree about the benefit of choosing the button position, but I'm not so sure about the style wrappers. Have any use-case examples?

jaredreich avatar Mar 24 '17 18:03 jaredreich

We are using the confirm notification as a quick nag dialog in a web app. To get it close to our UX team's vision, I had to make some strong assumptions that a class like .notie-button.notie-background-success was going to be the confirm button in a confirm notification which is probably a fair assumption.

We wanted to keep the confirm/cancel buttons normal sized and right aligned in a standard bootstrap container width, while having the notification background fill the screen width. The wrapping div and classes just add a few more touch points to make notie a little more flexible for styling.

I can back it out if that's not a direction you want to go.

ryansh100 avatar Mar 24 '17 19:03 ryansh100