-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ Display the publisher domain beneath the header of page attachments…
… that contain a form element (#35581) * Create the domain label element in the page attachment, which is displayed only when the attachment contains a form * Format fixes and replacing innerHTML with textContent * More formatting fixes * Update regex (due to prettier error) * Undo chnage made for testing * Remove unnecessary whitespace and clarify some descriptions * Replace regex with url service and update the domain label's side margins from 10px to 20px * Update CSS to account for page attachment V1 * Refactor out label creation logic into new createDomainLabelElement_ method * Prettier changes * Add tests for building the domain label * Revert the unit test changes * Add visual diff tests for the page attachment domain header * Resolve merge conflicts due to attachment v2 cleanup * Fix import and undo change made for testing * Add necessary import * Test updates * Undo test changes (they'll be submitted in the next PR) * Remove unnecessary import and newline * Added working visual diff tests * Prettier: Remove whitespace * Use CSS variables instead of setting the dark theme attribute on the domain label. Also, rename getPublisherDomain_ to getPublisherOrigin_ * Test code * Couple testing fixes * Replace after() with parentNode.append()
- Loading branch information
1 parent
b9e41a2
commit ab1dcae
Showing
4 changed files
with
139 additions
and
5 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
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