mirror of
https://github.com/discourse/discourse.git
synced 2026-08-07 13:19:19 +08:00
- Renames .d-modal modifiers from single-dash (-large, -max) to --large, --max across SCSS, <DModal>, and all callers (core + discourse-local-dates plugin) to match Discourse's BEM convention. - Moves per-modal overrides out of modal.scss into the dedicated modal-overrides.scss file - Add new `has-search` modifier, for use in modals with a inline filter/search element to avoid jumping height - Move all core `.modal selectors` to `.d-modal` This commit should not change anything visually (if all goes well).
15 lines
303 B
Ruby
Vendored
15 lines
303 B
Ruby
Vendored
# frozen_string_literal: true
|
|
|
|
module PageObjects
|
|
module Modals
|
|
class DeleteThemesConfirm < PageObjects::Pages::Base
|
|
def has_theme?(name)
|
|
has_css?(".d-modal li", text: name)
|
|
end
|
|
|
|
def confirm
|
|
find(".d-modal__footer .btn-primary").click
|
|
end
|
|
end
|
|
end
|
|
end
|