Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CrOS Hotspot] Add enable toggle in hotspot subpage
This CL adds a toggle button and on/off state text in the hotspot subpage. Screenshot: https://screenshot.googleplex.com/AirbDf3NPLVQCZC.png https://screenshot.googleplex.com/9kfoqgCTyJyGDg7.png Bug: b/239477916 Change-Id: I08768e363e4fcf2d1b58ef88d63da999f225295e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4104111 Reviewed-by: Chad Duffin <chadduffin@chromium.org> Commit-Queue: Jason Zhang <jiajunz@google.com> Reviewed-by: Wes Okuhara <wesokuhara@google.com> Cr-Commit-Position: refs/heads/main@{#1085176}
- Loading branch information
Jason Zhang
authored and
Chromium LUCI CQ
committed
Dec 19, 2022
1 parent
d12cb52
commit 22c44ae
Showing
8 changed files
with
336 additions
and
31 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
33 changes: 30 additions & 3 deletions
33
chrome/browser/resources/settings/chromeos/internet_page/hotspot_subpage.html
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,32 @@ | ||
<style include="settings-shared"> | ||
.separator-line { | ||
border-top: var(--cr-separator-line); | ||
padding: 0; | ||
} | ||
|
||
#hotspotToggleText { | ||
font-weight: 500; | ||
} | ||
|
||
#hotspotToggleText[on] { | ||
color: var(--cros-text-color-prominent); | ||
} | ||
|
||
#hotspotToggleText:not([on]) { | ||
color: var(--cros-text-color-secondary); | ||
} | ||
</style> | ||
<div id="container"> | ||
<!-- TODO(b/239477916): add implementation --> | ||
</div> | ||
<div class="settings-box first"> | ||
<div id="hotspotToggleText" class="start" on$="[[isHotspotToggleOn_]]" | ||
aria-hidden="true"> | ||
[[getOnOffString_(isHotspotToggleOn_)]] | ||
</div> | ||
<cr-toggle id="enableHotspotToggle" | ||
checked="{{isHotspotToggleOn_}}" | ||
disabled="[[isToggleDisabled_(hotspotInfo.allowStatus, | ||
hotspotInfo.state)]]" | ||
on-change="announceHotspotToggleChange_" | ||
aria-label="$i18n{hotspotToggleA11yLabel}"> | ||
</cr-toggle> | ||
</div> | ||
<div class="separator-line"></div> |
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
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
Oops, something went wrong.