Commit d3c5cb5
committed
jsdialog: fix menubutton alignment with other controls in grids
The broad button selector in btns.css matched jsdialog menubuttons,
overriding their margin and width. This caused menubuttons to be offset
by 5px from comboboxes and listboxes in the same grid column, since
those are div elements that do not match the btns.css selector.
Exclude .menubutton from the btns.css catch-all so menubuttons only
get their jsdialogs.css styling. Also fix the menubutton rule to use
the standard control height (32px), font size, and padding to match
other controls, start-align the content, and push the dropdown arrow
to the end of the button.
Add a regression test that asserts the menubutton and listbox-container
share the same left edge in the Border tab of the Character dialog.
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I3ca1a8c46f905f849d08d087f79ad940d8e2ee571 parent f62877d commit d3c5cb5
3 files changed
Lines changed: 29 additions & 4 deletions
File tree
- browser/css
- cypress_test/integration_tests/desktop/writer
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
158 | | - | |
| 158 | + | |
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1902 | 1902 | | |
1903 | 1903 | | |
1904 | 1904 | | |
| 1905 | + | |
1905 | 1906 | | |
1906 | | - | |
| 1907 | + | |
1907 | 1908 | | |
1908 | 1909 | | |
1909 | 1910 | | |
1910 | | - | |
| 1911 | + | |
1911 | 1912 | | |
1912 | 1913 | | |
1913 | 1914 | | |
1914 | 1915 | | |
1915 | | - | |
| 1916 | + | |
1916 | 1917 | | |
1917 | 1918 | | |
1918 | 1919 | | |
| |||
1944 | 1945 | | |
1945 | 1946 | | |
1946 | 1947 | | |
| 1948 | + | |
| 1949 | + | |
| 1950 | + | |
| 1951 | + | |
1947 | 1952 | | |
1948 | 1953 | | |
1949 | 1954 | | |
| |||
Lines changed: 20 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
217 | 237 | | |
218 | 238 | | |
219 | 239 | | |
| |||
0 commit comments