forked from ontoportal/ontoportal_web_ui
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: MultiLingual selectors to have a more clear usage (#407)
* update dropdown component to have a selected item * update select input component to add searchable and displayField options * update language field component to au generate language name using ISO * update platform language to not use JS and add tooltip * update search language selector to add a tooltip and show more languages * update content language selector to have a tooltip and a button to edit
- Loading branch information
1 parent
388cbab
commit 6e73930
Showing
33 changed files
with
399 additions
and
214 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,6 +50,7 @@ body{ | |
} | ||
|
||
.disabled-link{ | ||
pointer-events: none; | ||
color: #888888 !important; | ||
span{ | ||
opacity: 0.6; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,3 +26,4 @@ | |
@import "image"; | ||
@import "alert"; | ||
@import "progress_pages"; | ||
@import "select"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
.ts-wrapper{ | ||
display: flex; | ||
} | ||
|
||
.ts-control { | ||
padding: 12px; | ||
border-radius: 5px; | ||
} | ||
|
||
.ts-dropdown-content .option { | ||
padding: 12px; | ||
} | ||
|
||
.ts-dropdown .active { | ||
background-color: #f8f8f8; | ||
} | ||
|
||
.ts-dropdown { | ||
flex: 1 1 auto; | ||
min-width: 9rem; | ||
margin: 0; | ||
color: #666666; | ||
} | ||
|
||
|
||
.ts-wrapper.single .ts-control:after { | ||
border-color: #343a40 transparent transparent; | ||
border-style: solid; | ||
border-width: 5px 5px 0; | ||
content: " "; | ||
display: block; | ||
height: 0; | ||
margin-top: -3px; | ||
position: absolute; | ||
right: calc(0.5rem); | ||
top: 50%; | ||
width: 0; | ||
} | ||
|
||
.ts-wrapper.multi .ts-control>div{ | ||
border-radius: 5px; | ||
font-size: 11px; | ||
padding: 2px 0 4px 6px; | ||
color: #888888; | ||
} | ||
|
||
.ts-wrapper.plugin-remove_button:not(.rtl) .item .remove{ | ||
border-left: none; | ||
color: #888888 !important; | ||
margin-left: 0; | ||
} | ||
|
||
.ts-wrapper.plugin-remove_button .item .remove:hover { | ||
background: unset; | ||
} | ||
|
||
.has-items .ts-control > input { | ||
width: unset !important; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
app/components/language_field_component/language_field_component.html.haml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.