Comments (7)
Can you share a link or screenshot?
from docusaurus-search-local.
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
This is the best screenshot I can get because I'm running it on an offline environment.
from docusaurus-search-local.
What's the relevant docusaurus config or css styles like, that you implement RTL?
from docusaurus-search-local.
OK, I reproduced the issue by setting:
i18n: {
// ...
localeConfigs: {
en: {
direction: "rtl",
}
}
}
from docusaurus-search-local.
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](https://private-user-images.githubusercontent.com/2338946/341246074-78b965cc-a87e-4922-b9c2-2b7b59d884ee.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk3Mzk4NjksIm5iZiI6MTcxOTczOTU2OSwicGF0aCI6Ii8yMzM4OTQ2LzM0MTI0NjA3NC03OGI5NjVjYy1hODdlLTQ5MjItYjljMi0yYjdiNTlkODg0ZWUucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDYzMCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA2MzBUMDkyNjA5WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NDhkMjRhMDMyNzI5YTU1YjkxYjhjNDAwYzhiOTVkMjQyM2U3ZWQ5MWExNjJhYTA0N2Q4OGViYzljNjM4NWI5YyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.i_eTF0aTyJ-NZJ2jvjmbBUTbp5HpoyJGwb72vDOOkUs)
from docusaurus-search-local.
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?
![]()
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.
Fixed in 0.44.2
from docusaurus-search-local.
Related Issues (20)
- removeDefaultStemmer option does not seems to work HOT 4
- ع
- Error: Cannot mix different versions of joi schemas with Docusaurus 2.4.1 HOT 3
- pages index HOT 3
- Issues rebuilding site after modifying default docusaurus.config.js file HOT 2
- Building index in the development environment HOT 2
- Index url
- (excluding results) Excluding results isn't working HOT 1
- Error: ENOENT: no such file or directory, open 'xxx\build\docs\v1\search-index-docs.json HOT 3
- Help about Intersecting searchContextByPaths HOT 1
- Invalid search result url with docusaurus 3.4.0 HOT 8
- Conditional search HOT 2
- No search results in localsearch. The search animation is on loop. HOT 2
- Search By Keywords matches multiple keywords as a single string HOT 1
- Duplicate URLs for search results HOT 2
- Going to search results on headings seems to add the path twice HOT 1
- Contextual results are missing their context description HOT 3
- Insufficient contrast on highlighted suggestion HOT 5
- Customize search bar board colour HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docusaurus-search-local.