Skip to content

Commit b888380

Browse files
committed
Update Messenger styling
1 parent d11d016 commit b888380

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

seleniumbase/core/style_sheet.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,19 @@
111111
}
112112
113113
.tour-tour {
114-
pointer-events: auto;
114+
pointer-events: auto;
115115
z-index: 9999;
116116
}
117117
''')
118118

119+
messenger_style = (
120+
'''
121+
.messenger-message-inner {
122+
font-family: "Proxima Nova","proxima-nova",Arial,sans-serif !important;
123+
font-size: 15px;
124+
}
125+
''')
126+
119127
sh_style_test = (
120128
'''
121129
var test_tour = new Shepherd.Tour({

seleniumbase/fixtures/js_utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
from selenium.common.exceptions import WebDriverException
99
from seleniumbase.common import decorators
1010
from seleniumbase.config import settings
11+
from seleniumbase.core import style_sheet
1112
from seleniumbase.fixtures import constants
1213

1314

@@ -418,6 +419,7 @@ def activate_messenger(driver):
418419
add_js_link(driver, messenger_js)
419420
add_js_link(driver, msgr_theme_flat_js)
420421
add_js_link(driver, msgr_theme_future_js)
422+
add_css_style(driver, style_sheet.messenger_style)
421423

422424
for x in range(int(settings.MINI_TIMEOUT * 10.0)):
423425
# Messenger needs a small amount of time to load & activate.

0 commit comments

Comments
 (0)