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

chore: add default media sources to theme editor input #12

Merged
merged 2 commits into from
Jun 14, 2024

Conversation

jboix
Copy link
Contributor

@jboix jboix commented Jun 13, 2024

Description

Resolve #9 by adding a pre-configured selection of default media sources to the theme editor's live preview section.

Changes Made

The input field now includes a datalist element with default options for typical media scenarios. The datalist element was chosen to provide a simple and native solution for suggesting media sources, ensuring compatibility and ease of use across most browsers.

While Firefox has limited support for the datalist element, the decision to use it was made to simplify the implementation and utilize native HTML5 elements when possible. See the compatibility chart: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/datalist

See the following comparison:

Chrome Firefox Safari
Chrome Screenshot Firefox Screenshot Safari Screenshot

Checklist

  • I have followed the project's style and contribution guidelines.
  • I have performed a self-review of my own changes.
  • I have made corresponding changes to the documentation.
  • I have added tests that prove my fix is effective or that my feature works.

@jboix jboix requested review from defagos and amtins June 13, 2024 08:42
@jboix jboix self-assigned this Jun 13, 2024
Copy link

github-actions bot commented Jun 13, 2024

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 89.78% 976 / 1087
🔵 Statements 89.78% 976 / 1087
🔵 Functions 92.3% 60 / 65
🔵 Branches 89.1% 90 / 101
File CoverageNo changed files found.
Generated in workflow #32

Copy link

github-actions bot commented Jun 13, 2024

PR Preview Action v1.4.7
Preview removed because the pull request was closed.
2024-06-14 13:40 UTC

Resolve #9 by adding a pre-configured selection of default media sources to the theme editor's live
preview section.

The input field now includes a `datalist` element with default options for typical media scenarios.
The `datalist` element was chosen to provide a simple and native solution for suggesting media
sources, ensuring compatibility and ease of use across most browsers.

While Firefox has limited support for the `datalist` element, the decision to use it was made to
simplify the implementation and utilize native HTML5 elements when possible.
@jboix jboix force-pushed the chore/default-sources branch from d717d65 to 12cf4dd Compare June 13, 2024 08:43
index.html Outdated Show resolved Hide resolved
@defagos
Copy link
Member

defagos commented Jun 14, 2024

@jboix I see that this repository does not check that all discussions associated with a PR have been resolved before the PR can be merged. Shouldn't you enable this feature?

@jboix
Copy link
Contributor Author

jboix commented Jun 14, 2024

@jboix I see that this repository does not check that all discussions associated with a PR have been resolved before the PR can be merged. Shouldn't you enable this feature?

@defagos we normally don't approve the PR if there are open discussion, I didn't even know that was a feature. Thanks for the feedback!

@jboix jboix added this pull request to the merge queue Jun 14, 2024
Merged via the queue into main with commit 527ff81 Jun 14, 2024
4 checks passed
@jboix jboix deleted the chore/default-sources branch June 14, 2024 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement default media sources
2 participants