openui / openui/open-ui

Add a new element to change a URL parameter without Javascript

Open
#666 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

more-info-needed needs-research needs-triage
Dominant language
MDX
Stars
4.5k
Forks
226
Avg merge
2d 22h
Merged PRs (30d)
4

Description

I made the suggestion to use the "select" element to change a URL parameter without Javascript but it has been closed as out of scope for the "select" element. In that case we can add a new element with the same appearance as the select element.

<url-parameter name="lang"/>
    <option>en</option>
    <option>es</option>

URL = https://demo.nexttypes.com/?lang=en

We can also add a new element or extend the "anchor" or "nav" elements to be able to choose from multiple full URLs with the same appearance as the select element.

<url>
    <option>en.website.com/</option>
    <option>es.website.com/</option>

    <option>website.com/en/</option>
    <option>website.com/es/</option>
</url>

<a>
    <option>en.website.com/</option>
    <option>es.website.com/</option>

    <option>website.com/en/</option>
    <option>website.com/es/</option>
</a>

<nav select>
   <a href="en.website.com"/>
   <a href="es.website.com"/>

   <a href="website.com/en/"/>
   <a href="website.com/es/"/>
 </nav>  

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the linked openui/open-ui issue 276 and comparing the proposed select, anchor, nav, and new-element approaches. Done would require a settled proposal defining the element or extension, its URL and parameter behavior, and its relationship to existing elements.

Written by the indexing model from the issue text.

Assessment

Tech stack
html
Domain
frontend, web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.