-
Notifications
You must be signed in to change notification settings - Fork 142
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
replay: set data-dd-privacy attribute on snapshot node if hidden
As a node can be hidden from a data attribute rather than a class, only adding the class to the snapshot node attributes means we can't properly style the node when rebuilding it. This commit ensures the data-dd-privacy=hidden attribute is always set, even if the node was hidden using the class. Additionally, we set the ID as a/ it helps with testing, b/ we can assume it doesn't contain PII and c/ it may be used when rebuilding (CSS rules could be selecting by ID).
- Loading branch information
Showing
3 changed files
with
17 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters