Giter Club home page Giter Club logo

Comments (7)

weareoutman avatar weareoutman commented on June 30, 2024

Can you share a link or screenshot?

from docusaurus-search-local.

Orenico10 avatar Orenico10 commented on June 30, 2024

Can you share a link or screenshot?

I changed the docusaurus to be RTL and the search bar is doing this weird behavior once I hover over it
20240619_163050.jpg

This is the best screenshot I can get because I'm running it on an offline environment.

from docusaurus-search-local.

weareoutman avatar weareoutman commented on June 30, 2024

What's the relevant docusaurus config or css styles like, that you implement RTL?

from docusaurus-search-local.

weareoutman avatar weareoutman commented on June 30, 2024

OK, I reproduced the issue by setting:

i18n: {
  // ...
  localeConfigs: {
      en: {
        direction: "rtl",
      }
    }
}

from docusaurus-search-local.

weareoutman avatar weareoutman commented on June 30, 2024

I'm not familiar with RTL languages, especially how to render a text input, is it ok to make the search bar appear the same as LTR?

image

from docusaurus-search-local.

Orenico10 avatar Orenico10 commented on June 30, 2024

I'm not familiar with RTL languages, especially how to render a text input, is it ok to make the search bar appear the same as LTR?

image

When using RTL languages the search bar is usually mirrored (in comparison to LTR) so the magnifying glass is on the opposite side and the text is forced RTL so any css configurations will set the dir/direction to be rtl rather than ltr/auto, but since this project is for a search bar for docusaurus I suppose keeping it the same as LTR would be fine, as long as I don't get the weird behavior, for now I'm running a script on my website that forces the input's dir to be rtl when you hover over it (basically canceling whatever causes this glitch)

from docusaurus-search-local.

weareoutman avatar weareoutman commented on June 30, 2024

Fixed in 0.44.2

from docusaurus-search-local.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.