Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

style: change to arrows expand icon, aimd to close #421 #440

Merged
merged 2 commits into from
Apr 13, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sepal_ui/mapping/fullscreen_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class FullScreenControl(WidgetControl):
kwargs (optional): any availabel arguments from a ipyleaflet WidgetControl
"""

ICONS = ["expand", "compress"]
ICONS = ["arrows-alt", "compress"]
"list: The icons that will be used to toggle between expand and compressed mode"

METHODS = ["embed", "fullscreen"]
Expand Down
4 changes: 2 additions & 2 deletions tests/test_FullScreenControl.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def test_init(self):
assert isinstance(control, sm.FullScreenControl)
assert control in map_.controls
assert control.zoomed is False
assert control.w_btn.icon == "expand"
assert control.w_btn.icon == "arrows-alt"

return

Expand All @@ -35,6 +35,6 @@ def test_toggle_fullscreen(self):
control.toggle_fullscreen(None)

assert control.zoomed is False
assert control.w_btn.icon == "expand"
assert control.w_btn.icon == "arrows-alt"

return