Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(677)

Side by Side Diff: ui/webui/resources/cr_elements/cr_dialog/cr_dialog.html

Issue 2727663006: MD WebUI: change how initial focus works in <dialog>s now that they know about shadow DOM (Closed)
Patch Set: fix tests Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <link rel="import" href="chrome://resources/cr_elements/icons.html"> 1 <link rel="import" href="chrome://resources/cr_elements/icons.html">
2 <link rel="import" href="chrome://resources/html/assert.html"> 2 <link rel="import" href="chrome://resources/html/assert.html">
3 <link rel="import" href="chrome://resources/html/polymer.html"> 3 <link rel="import" href="chrome://resources/html/polymer.html">
4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper -icon-button.html"> 4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper -icon-button.html">
5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-styles/default-th eme.html"> 5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-styles/default-th eme.html">
6 6
7 <dom-module id="cr-dialog"> 7 <dom-module id="cr-dialog">
8 <template> 8 <template>
9 <style> 9 <style>
10 :host { 10 :host {
(...skipping 15 matching lines...) Expand all
26 position: fixed; 26 position: fixed;
27 right: 0; 27 right: 0;
28 top: 0; 28 top: 0;
29 } 29 }
30 30
31 .title-container { 31 .title-container {
32 align-items: center; 32 align-items: center;
33 border-bottom: 1px solid var(--divider-color); 33 border-bottom: 1px solid var(--divider-color);
34 display: flex; 34 display: flex;
35 min-height: 52px; 35 min-height: 52px;
36 outline: none;
36 } 37 }
37 38
38 :host ::content .title { 39 :host ::content .title {
39 font-size: 123.07%; /* (16px / 13px) * 100 */ 40 font-size: 123.07%; /* (16px / 13px) * 100 */
40 outline: none;
41 } 41 }
42 42
43 #close { 43 #close {
44 --paper-icon-button: { 44 --paper-icon-button: {
45 height: 40px; 45 height: 40px;
46 width: 40px; 46 width: 40px;
47 }; 47 };
48 -webkit-margin-end: 6px; 48 -webkit-margin-end: 6px;
49 /* <paper-icon-button> overrides --iron-icon-{height,width}, so this 49 /* <paper-icon-button> overrides --iron-icon-{height,width}, so this
50 * padding essentially reduces 40x40 to 20x20. */ 50 * padding essentially reduces 40x40 to 20x20. */
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 border-bottom-left-radius: inherit; 88 border-bottom-left-radius: inherit;
89 border-bottom-right-radius: inherit; 89 border-bottom-right-radius: inherit;
90 margin: 0; 90 margin: 0;
91 padding: 16px 20px; 91 padding: 16px 20px;
92 } 92 }
93 93
94 :host ::content .border-top-divider { 94 :host ::content .border-top-divider {
95 border-top: 1px solid var(--divider-color); 95 border-top: 1px solid var(--divider-color);
96 } 96 }
97 </style> 97 </style>
98 <div class="title-container"> 98 <div class="title-container" tabindex="-1">
99 <content select=".title"></content> 99 <content select=".title"></content>
100 <paper-icon-button icon="cr:clear" on-tap="cancel" id="close" 100 <paper-icon-button icon="cr:clear" on-tap="cancel" id="close"
101 aria-label$="[[closeText]]"> 101 aria-label$="[[closeText]]">
102 </paper-icon-button> 102 </paper-icon-button>
103 </div> 103 </div>
104 <div class="body-container"> 104 <div class="body-container">
105 <content select=".body"></content> 105 <content select=".body"></content>
106 </div> 106 </div>
107 <content select=".button-container"></content> 107 <content select=".button-container"></content>
108 <content select=".footer"></content> 108 <content select=".footer"></content>
109 </template> 109 </template>
110 <script src="cr_dialog.js"></script> 110 <script src="cr_dialog.js"></script>
111 </dom-module> 111 </dom-module>
OLDNEW
« no previous file with comments | « chrome/test/data/webui/cr_elements/cr_dialog_test.js ('k') | ui/webui/resources/cr_elements/cr_dialog/cr_dialog.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698