Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

📝 Add cookbook item for multi item highlighting #967

Merged
merged 1 commit into from
May 16, 2020
Merged
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
20 changes: 20 additions & 0 deletions docs-src/tutorials/04-cookbook.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,26 @@ as a dependency, in favor of users installing it directly in their apps. To disa
you can install `body-scroll-lock` and run `bodyScrollLock.disableBodyScroll();` before
starting the tour, then `bodyScrollLock.clearAllBodyScrollLocks();` after stopping the tour.

### Highlighting multiple elements

The most obvious use case for this, is around a group of elements, or more specifically the column in a TABLE. This can be achieved using CSS to absolutely position the element and give it the width and height you need. e.g.,

```html
<colgroup class="shepherd-step-highlight">
```
and setting your CSS to something like:

```css
colgroup.shepherd-step-highlight {
display: block;
height: 100px;
position: absolute;
width: 200px;
}
```

Similar results could be had by adding elements purely for the purpose of exposing more than one element in the overlay and positioning the element absolutely.

### Offsets

By default, Popper instances are placed directly next to their target. However, if you need to apply some margin
Expand Down