Spectre: Close-buttons in small modals and "x"-buttons in toasts don't work / require additional JS

Created on 30 Nov 2017  路  2Comments  路  Source: picturepan2/spectre

Hello @picturepan2
just recently got a hint to check out Spectre and I am amazed! Great work 馃憣

One thing that irritated me was the inconsistency in regards to closing mechanics:

Toasts --> the "x" is a button and doesn't work / requires add. JS
Small modals --> "x" is an anker and works without JS
Small modals --> "Close" is a button and would require add. JS
Large modals --> "x" is an anker and works without JS
Large modals --> "Close" is an anker and works without JS

Just wondering, what is the reasoning behind this?

Thanks a lot in advance 馃槂

question

All 2 comments

@boettges Thanks. Yes. For toasts, you will need JS to show or hide it. For modals, you can replace the "Close" buttons with "x" button links. I will update the examples.

@boettges Examples updated.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

roemhildtg picture roemhildtg  路  4Comments

tomcam picture tomcam  路  4Comments

alighasemzadeh picture alighasemzadeh  路  3Comments

jai2010 picture jai2010  路  3Comments

alighasemzadeh picture alighasemzadeh  路  4Comments