ModernWeb
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Write
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Help
Menu
Options
Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Write
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    # A11y & customization / Maya Shavin {%hackmd @ModernWeb/SyA2U6SmT %} > 共筆請從這開始 ## UI Component - Reusable - Stylable - Customizable - Accessible - Responsive - Isolate & Testable - Visual Consistency - Functional Consistency ## Build - StorefrontUI (https://docs.storefrontui.io/v2/) e-commerce components priorize customization mobile-first accessible 4 aspect to build components - Customization - Accessibility - Scalability - Ease of use ## A11y - What is accessibility? Keyboard navigation 無法一手shift + del,因為他就是設計要你注意 - Color contrast 需考慮色盲色弱的使用者 - Landmarks & Content layout(200% and 400% zoom in) [Landmarks](https://a11y-101.com/development/landmarks) 當瀏覽器無法存取外部css時,需要保持網頁本身純HTML的架構(ex:h1,h2) - Focus // like click by keyboard - Form handlings 表單驗證錯誤時要如何顯示 - Understandable content - Media - Typography - External/internal link behaviors 外部連結是其他網站通常會是開啟新頁面,而內部連結則是在本身頁面進行轉導 - Tab order(flow) 開發者期望的tab order和使用者實際期望的常常會不一樣 ## Atomic design pattern 資料支援:https://medium.com/@janelle.wg/atomic-design-pattern-how-to-structure-your-react-application-2bb4d9ca5f97 1. Atoms - Colors - Focusable - HTML landmark usage - Informative content - Typography 2. Molecules - **Navigation Flows** - **Layout landmark** - Informative content - Table/Form - **Focus flow** 3. Organisms - Navigation FLow - Landmark - Table/Form - Focus flow - **Content layout** 4. Templates 5. Pages - repeat organisms [ARIA](https://www.w3.org/WAI/ARIA/apg/) ## Dialog(Modal) - Dialog/ AlertDialog type - Autofocus on the first focusable element - Focus stay inside - Close by ESC, click on backdrop, or by button click - Restore focus after dialog closes ## Tooltip Hover在tablet上的行為不一樣,因為手指沒有滑上去 ## Loading page - keep the ref of the button - Don't unmount the componebnt, just hide it - Trigger re-focus when loading finished ## Question Always open new tab is an anti-pattern Every single external link should open a new tab (is wrong!) - disrupted user navigation flow - 關閉 tab 之後如何回到原本的 tab ## Guides - only one `<h1>` and `<main>` - give me back my focus - the mouse is out of battery ## Customizability ## Scalability ## Ease of Use ## documentation - clear code structure - concise code comments - short and concise instrunctions - ready-to use ezmaples - accessibilty guidelines - automate, automate,automate ## takeaway ------ ## 輔助參考資料 - [keyboard navigation - Testing](https://webaim.org/techniques/keyboard/#testing) - [color contrast](https://webaim.org/resources/contrastchecker/) - [ARIA Authoring Practices Guide (APG) ](https://www.w3.org/WAI/ARIA/apg/practices/) - [pointer-events](https://developer.mozilla.org/en-US/docs/Web/API/Pointer_events) --- > 聊天室 > B 棟的冷氣比較冷 > > 聽工作人員說她是以色列來的 > 前幾天還確認能不能來,畢竟那裏在打仗 > 她是,Founder & OrganizerFounder & Organizer VueJSIsrael Meetups > 原來現在還是強調 mobile first > 我很擔心是不是變成 AI First > 我和世界脫節了(還好沒有) > 好奇大家如果不用 div 會用哪個 tag > 看區塊的用途吧 > 像是如果是畫區域的話我一時想不到除了 section 以外還有哪些適合 > 看用途決定啦,如果不知道這塊要幹嘛,其實我也會先叫他 div > ~~不然 Table 你覺得如何~~ > Q:為什麼不建議使用 ARIA? > 如果不需要就不要加 好快 > 不行了手速跟不上 XDDDD copilot again

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully