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

ts-modal 也許可以用上 <dialog> 就像 ts-accordion 那樣 #946

Closed
YamiOdymel opened this issue Oct 30, 2023 · 0 comments
Closed

ts-modal 也許可以用上 <dialog> 就像 ts-accordion 那樣 #946

YamiOdymel opened this issue Oct 30, 2023 · 0 comments
Assignees
Labels
🎨 CSS 與 CSS 和外觀設計上有關聯。 💡 改進提案 討論的是基於目前元件所做出的變更,令某個功能或樣式更好(而不是追加新功能)。
Milestone

Comments

@YamiOdymel
Copy link
Member

有個好處,就是底下的元素不再需要調整他們的 `z-index` 以避免比 Modal 本身還要更上面;而 `` 裡面的 `` 也可以透過 `` 或 `formmethod` 來將資料作為 return value 傳去外面。

還有什麼 .show().showModal() 的原生 JavaScript 函式可以呼叫,透過 showModal 呈現的 <dialog> 甚至能以 Esc 按鍵關閉。

@YamiOdymel YamiOdymel added 💡 改進提案 討論的是基於目前元件所做出的變更,令某個功能或樣式更好(而不是追加新功能)。 🎨 CSS 與 CSS 和外觀設計上有關聯。 labels Oct 30, 2023
@YamiOdymel YamiOdymel self-assigned this Oct 30, 2023
@YamiOdymel YamiOdymel added this to the Tocas 4.3.0 milestone Dec 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🎨 CSS 與 CSS 和外觀設計上有關聯。 💡 改進提案 討論的是基於目前元件所做出的變更,令某個功能或樣式更好(而不是追加新功能)。
Projects
None yet
Development

No branches or pull requests

1 participant