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

🐛 Bug Report: there is a bug whit modals #135

Open
2 tasks done
Trongar opened this issue Dec 25, 2023 · 4 comments
Open
2 tasks done

🐛 Bug Report: there is a bug whit modals #135

Trongar opened this issue Dec 25, 2023 · 4 comments
Assignees
Labels
bug Something isn't working question Further information is requested

Comments

@Trongar
Copy link

Trongar commented Dec 25, 2023

👟 Reproduction steps

Im using this whit an astro project, when i copy and paste the code from de the dos it doesn´t show as is spected

this is my code

<li><button class="card s-xciFPC5Srn6Q"><div class="avatar is-size-large s-xciFPC5Srn6Q"><span class="icon-plus s-xciFPC5Srn6Q"></span></div> <h4 class="text u-font-size-20 u-bold s-xciFPC5Srn6Q" style="text-wrap: balance;">Nueva tienda</h4> <p class="text s-xciFPC5Srn6Q" style="text-wrap: pretty;">Crea una nueva tienda donde podras administrar tus productos y poder
    realizar registros de las mismas
    <button class="button s-yu7OS-GWNOYq"><span class="s-yu7OS-GWNOYq">Open Modal</span></button> <dialog class="modal s-yu7OS-GWNOYq" id="dialog" open=""><form class="modal-form s-yu7OS-GWNOYq" method="dialog"><header class="modal-header s-yu7OS-GWNOYq"><div class="u-flex u-main-space-between u-cross-center u-gap-16 s-yu7OS-GWNOYq"><div class="avatar is-color-orange is-medium s-yu7OS-GWNOYq"><span class="icon-exclamation s-yu7OS-GWNOYq" aria-hidden="true"></span></div> <h4 class="modal-title heading-level-5 s-yu7OS-GWNOYq">Modal title</h4> <button class="button is-text is-small is-only-icon s-yu7OS-GWNOYq" aria-label="Close modal"><span class="icon-x s-yu7OS-GWNOYq" aria-hidden="true"></span></button></div></header> <div class="modal-content u-small s-yu7OS-GWNOYq">Modal label text.</div> <div class="modal-footer s-yu7OS-GWNOYq"><div class="u-flex u-main-end u-gap-16 s-yu7OS-GWNOYq"><button class="button is-text s-yu7OS-GWNOYq"><span class="text s-yu7OS-GWNOYq">Button</span></button> <button class="button is-secondary s-yu7OS-GWNOYq"><span class="text s-yu7OS-GWNOYq">Button</span></button></div></div></form></dialog></p></button><!--<Team-card>--><!--<New-store-card>--></li>

👍 Expected behavior

it should be looking like this
image

👎 Actual Behavior

but it looks like this
image

🎲 Appwrite version

Different version (specify in environment)

💻 Operating system

Linux

🧱 Your Environment

in runnin on a wsl machine, in an astro project, i just copy it from the demo
https:/appwrite/demos-for-astro
and upgraded all dependecys
but even i've seen this behavior on a codepen instance

https://codepen.io/Trongar/pen/BabyWaP

👀 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

@Trongar Trongar added the bug Something isn't working label Dec 25, 2023
Copy link
Contributor

Uh oh! @Trongar, the image you shared is missing helpful alt text. Check your issue body.

Alt text is an invisible description that helps screen readers describe images to blind or low-vision users. If you are using markdown to display images, add your alt text inside the brackets of the markdown image.

Learn more about alt text at Basic writing and formatting syntax: images on GitHub Docs.

@Trongar
Copy link
Author

Trongar commented Dec 25, 2023

even, this is my package.json

{
  "name": "example-blog",
  "type": "module",
  "version": "0.0.1",
  "scripts": {
    "dev": "astro dev",
    "start": "astro dev",
    "build": "astro build",
    "preview": "astro preview",
    "astro": "astro"
  },
  "dependencies": {
    "@appwrite.io/pink": "^0.2.0",
    "@astrojs/mdx": "^2.0.2",
    "@astrojs/rss": "^4.0.1",
    "@astrojs/sitemap": "^3.0.3",
    "@astrojs/svelte": "^5.0.2",
    "@astrojs/vercel": "^6.1.0",
    "appwrite": "^11.0.1",
    "astro": "^4.0.7",
    "nanostores": "^0.8.1",
    "sanitize-html": "^2.10.0",
    "svelte": "^4.2.8"
  },
  "devDependencies": {
    "@types/sanitize-html": "^2.9.0"
  }
}

@stnguyen90
Copy link
Contributor

stnguyen90 commented May 14, 2024

@Trongar, thanks for creating this issue! 🙏🏼 The dialog Did you add JavaScript code to call the various show/close methods as mentioned in the docs?

screenshot of the docs linked

@stnguyen90 stnguyen90 self-assigned this May 14, 2024
@stnguyen90 stnguyen90 added the question Further information is requested label May 14, 2024
Copy link
Contributor

Uh oh! @stnguyen90, the image you shared is missing helpful alt text. Check #135 (comment).

Alt text is an invisible description that helps screen readers describe images to blind or low-vision users. If you are using markdown to display images, add your alt text inside the brackets of the markdown image.

Learn more about alt text at Basic writing and formatting syntax: images on GitHub Docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants