Skip to content

Commit 0c29769

Browse files
committed
Update tour code (add alternate theme name)
1 parent a2e14cc commit 0c29769

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

seleniumbase/fixtures/base_case.py

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -932,8 +932,8 @@ def create_tour(self, name=None, theme=None):
932932
name - If creating multiple tours, use this to select the
933933
tour you wish to add steps to.
934934
theme - Sets the default theme for the tour.
935-
Choose from "arrows", "dark", "default", "square", and
936-
"square-dark". ("arrows" is used if None is selected.)
935+
Choose from "light"/"arrows", "dark", "default", "square",
936+
and "square-dark". ("arrows" is used if None is selected.)
937937
"""
938938
if not name:
939939
name = "default"
@@ -947,6 +947,8 @@ def create_tour(self, name=None, theme=None):
947947
shepherd_theme = "shepherd-theme-default"
948948
elif theme == "dark":
949949
shepherd_theme = "shepherd-theme-dark"
950+
elif theme == "light":
951+
shepherd_theme = "shepherd-theme-arrows"
950952
elif theme == "arrows":
951953
shepherd_theme = "shepherd-theme-arrows"
952954
elif theme == "square":
@@ -995,8 +997,8 @@ def add_tour_step(self, message, selector=None, name=None,
995997
tour you wish to add steps to.
996998
title - Additional header text that appears above the message.
997999
theme - (NON-Bootstrap Tours ONLY) The styling of the tour step.
998-
Choose from "arrows", "dark", "default", "square", and
999-
"square-dark". ("arrows" is used if None is selected.)
1000+
Choose from "light"/"arrows", "dark", "default", "square",
1001+
and "square-dark". ("arrows" is used if None is selected.)
10001002
alignment - Choose from "top", "bottom", "left", and "right".
10011003
("top" is the default alignment).
10021004
duration - (Bootstrap Tours ONLY) The amount of time, in seconds,
@@ -1047,15 +1049,17 @@ def __add_shepherd_tour_step(self, message, selector=None, name=None,
10471049
tour you wish to add steps to.
10481050
title - Additional header text that appears above the message.
10491051
theme - (NON-Bootstrap Tours ONLY) The styling of the tour step.
1050-
Choose from "arrows", "dark", "default", "square", and
1051-
"square-dark". ("arrows" is used if None is selected.)
1052+
Choose from "light"/"arrows", "dark", "default", "square",
1053+
and "square-dark". ("arrows" is used if None is selected.)
10521054
alignment - Choose from "top", "bottom", "left", and "right".
10531055
("top" is the default alignment).
10541056
"""
10551057
if theme == "default":
10561058
shepherd_theme = "shepherd-theme-default"
10571059
elif theme == "dark":
10581060
shepherd_theme = "shepherd-theme-dark"
1061+
elif theme == "light":
1062+
shepherd_theme = "shepherd-theme-arrows"
10591063
elif theme == "arrows":
10601064
shepherd_theme = "shepherd-theme-arrows"
10611065
elif theme == "square":

0 commit comments

Comments
 (0)