@elastic/eui 64.0.1 → 65.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (374) hide show
  1. package/dist/eui_charts_theme.js +330 -330
  2. package/dist/eui_charts_theme.js.map +1 -1
  3. package/dist/eui_theme_dark.css +164 -1249
  4. package/dist/eui_theme_dark.json +0 -32
  5. package/dist/eui_theme_dark.json.d.ts +0 -32
  6. package/dist/eui_theme_dark.min.css +1 -1
  7. package/dist/eui_theme_light.css +136 -1221
  8. package/dist/eui_theme_light.json +0 -32
  9. package/dist/eui_theme_light.json.d.ts +0 -32
  10. package/dist/eui_theme_light.min.css +1 -1
  11. package/es/components/accessibility/screen_reader_only/screen_reader_only.styles.js +2 -1
  12. package/es/components/accessibility/skip_link/skip_link.js +4 -54
  13. package/es/components/accordion/accordion.js +2 -1
  14. package/es/components/accordion/accordion.styles.js +17 -27
  15. package/es/components/badge/beta_badge/beta_badge.js +16 -3
  16. package/es/components/basic_table/basic_table.js +1 -1
  17. package/es/components/basic_table/collapsed_item_actions.js +1 -1
  18. package/es/components/basic_table/in_memory_table.js +1 -1
  19. package/es/components/beacon/beacon.styles.js +2 -2
  20. package/es/components/button/button.js +112 -215
  21. package/es/components/button/button_display/_button_display.js +90 -40
  22. package/es/components/button/button_display/_button_display.styles.js +7 -16
  23. package/es/components/button/button_display/_button_display_content.js +6 -3
  24. package/es/components/button/button_display/_button_display_content.styles.js +7 -17
  25. package/es/components/button/button_empty/button_empty.js +63 -53
  26. package/es/components/button/button_empty/index.js +1 -1
  27. package/es/components/button/button_group/button_group.js +4 -12
  28. package/es/components/button/button_group/button_group_button.js +14 -4
  29. package/es/components/button/button_icon/button_icon.js +61 -42
  30. package/es/components/call_out/call_out.styles.js +2 -1
  31. package/es/components/card/card.js +173 -89
  32. package/es/components/card/card.styles.js +136 -0
  33. package/es/components/card/card_select/card_select.js +133 -0
  34. package/es/components/card/card_select/card_select.styles.js +25 -0
  35. package/es/components/card/card_select/index.js +8 -0
  36. package/es/components/card/checkable_card/checkable_card.js +14 -9
  37. package/es/components/card/checkable_card/checkable_card.styles.js +22 -0
  38. package/es/components/comment_list/comment_event.styles.js +1 -1
  39. package/es/components/datagrid/body/data_grid_body.js +7 -6
  40. package/es/components/datagrid/body/data_grid_cell.js +13 -12
  41. package/es/components/datagrid/body/header/data_grid_header_cell.js +7 -6
  42. package/es/components/datagrid/body/header/data_grid_header_row.js +7 -6
  43. package/es/components/datagrid/data_grid.js +7 -6
  44. package/es/components/datagrid/utils/in_memory.js +7 -6
  45. package/es/components/date_picker/auto_refresh/auto_refresh.js +3 -2
  46. package/es/components/date_picker/react-datepicker/original.package.json +124 -0
  47. package/es/components/date_picker/super_date_picker/super_date_picker.js +17 -1
  48. package/es/components/date_picker/super_date_picker/super_update_button.js +11 -1
  49. package/es/components/description_list/description_list_title.js +1 -1
  50. package/es/components/expression/expression.styles.js +13 -31
  51. package/es/components/facet/facet_button.js +5 -4
  52. package/es/components/header/header_links/header_link.js +5 -3
  53. package/es/components/icon/icon.js +2 -1
  54. package/es/components/image/image_button.styles.js +1 -1
  55. package/es/components/image/image_wrapper.styles.js +3 -3
  56. package/es/components/link/link.styles.js +2 -2
  57. package/es/components/list_group/list_group.js +2 -1
  58. package/es/components/list_group/list_group_item.js +2 -1
  59. package/es/components/list_group/pinnable_list_group/pinnable_list_group.js +3 -2
  60. package/es/components/loading/loading_chart.styles.js +16 -26
  61. package/es/components/loading/loading_content.styles.js +2 -2
  62. package/es/components/loading/loading_logo.styles.js +4 -4
  63. package/es/components/loading/loading_spinner.styles.js +6 -6
  64. package/es/components/markdown_editor/markdown_editor_toolbar.js +2 -0
  65. package/es/components/modal/confirm_modal.js +1 -1
  66. package/es/components/notification/notification_event.js +5 -3
  67. package/es/components/notification/notification_event_read_button.js +2 -1
  68. package/es/components/page/page_template.js +2 -2
  69. package/es/components/page_template/inner/page_inner.styles.js +2 -2
  70. package/es/components/page_template/outer/page_outer.styles.js +3 -1
  71. package/es/components/pagination/pagination_button.js +5 -3
  72. package/es/components/panel/panel.js +1 -1
  73. package/es/components/panel/{panel.style.js → panel.styles.js} +2 -2
  74. package/es/components/progress/progress.styles.js +2 -2
  75. package/es/components/title/title.styles.js +2 -2
  76. package/es/components/toast/toast.styles.js +4 -4
  77. package/es/components/tool_tip/icon_tip.js +11 -1
  78. package/es/components/tool_tip/tool_tip.js +18 -6
  79. package/es/global_styling/functions/logicals.js +2 -72
  80. package/es/global_styling/functions/logicals.json +56 -0
  81. package/es/global_styling/functions/typography.js +2 -1
  82. package/es/global_styling/mixins/_color.js +1 -1
  83. package/es/global_styling/mixins/_helpers.js +7 -1
  84. package/es/global_styling/reset/global_styles.js +2 -1
  85. package/es/themes/amsterdam/global_styling/mixins/button.js +165 -16
  86. package/eui.d.ts +1062 -936
  87. package/i18ntokens.json +15 -15
  88. package/lib/components/accessibility/screen_reader_only/screen_reader_only.styles.js +3 -1
  89. package/lib/components/accessibility/skip_link/skip_link.js +4 -54
  90. package/lib/components/accordion/accordion.js +3 -1
  91. package/lib/components/accordion/accordion.styles.js +17 -26
  92. package/lib/components/badge/beta_badge/beta_badge.js +16 -3
  93. package/lib/components/basic_table/basic_table.js +1 -1
  94. package/lib/components/basic_table/collapsed_item_actions.js +1 -1
  95. package/lib/components/basic_table/in_memory_table.js +1 -1
  96. package/lib/components/beacon/beacon.styles.js +1 -1
  97. package/lib/components/button/button.js +124 -229
  98. package/lib/components/button/button_display/_button_display.js +94 -33
  99. package/lib/components/button/button_display/_button_display.styles.js +7 -16
  100. package/lib/components/button/button_display/_button_display_content.js +7 -3
  101. package/lib/components/button/button_display/_button_display_content.styles.js +7 -17
  102. package/lib/components/button/button_empty/button_empty.js +64 -54
  103. package/lib/components/button/button_empty/index.js +0 -6
  104. package/lib/components/button/button_group/button_group.js +4 -12
  105. package/lib/components/button/button_group/button_group_button.js +15 -4
  106. package/lib/components/button/button_icon/button_icon.js +61 -43
  107. package/lib/components/call_out/call_out.styles.js +2 -1
  108. package/lib/components/card/card.js +174 -88
  109. package/lib/components/card/card.styles.js +146 -0
  110. package/lib/components/card/card_select/card_select.js +144 -0
  111. package/lib/components/card/card_select/card_select.styles.js +27 -0
  112. package/lib/components/card/card_select/index.js +19 -0
  113. package/lib/components/card/checkable_card/checkable_card.js +16 -9
  114. package/lib/components/card/checkable_card/checkable_card.styles.js +33 -0
  115. package/lib/components/comment_list/comment_event.styles.js +1 -1
  116. package/lib/components/datagrid/body/data_grid_body.js +7 -6
  117. package/lib/components/datagrid/body/data_grid_cell.js +13 -12
  118. package/lib/components/datagrid/body/header/data_grid_header_cell.js +7 -6
  119. package/lib/components/datagrid/body/header/data_grid_header_row.js +7 -6
  120. package/lib/components/datagrid/data_grid.js +7 -6
  121. package/lib/components/datagrid/utils/in_memory.js +7 -6
  122. package/lib/components/date_picker/auto_refresh/auto_refresh.js +3 -2
  123. package/lib/components/date_picker/react-datepicker/original.package.json +124 -0
  124. package/lib/components/date_picker/super_date_picker/super_date_picker.js +17 -1
  125. package/lib/components/date_picker/super_date_picker/super_update_button.js +11 -1
  126. package/lib/components/description_list/description_list_title.js +1 -1
  127. package/lib/components/expression/expression.styles.js +12 -30
  128. package/lib/components/facet/facet_button.js +4 -3
  129. package/lib/components/header/header_links/header_link.js +5 -3
  130. package/lib/components/icon/icon.js +2 -1
  131. package/lib/components/image/image_button.styles.js +1 -1
  132. package/lib/components/image/image_wrapper.styles.js +2 -2
  133. package/lib/components/link/link.styles.js +1 -1
  134. package/lib/components/list_group/list_group.js +2 -1
  135. package/lib/components/list_group/list_group_item.js +2 -1
  136. package/lib/components/list_group/pinnable_list_group/pinnable_list_group.js +3 -2
  137. package/lib/components/loading/loading_chart.styles.js +16 -25
  138. package/lib/components/loading/loading_content.styles.js +1 -1
  139. package/lib/components/loading/loading_logo.styles.js +4 -4
  140. package/lib/components/loading/loading_spinner.styles.js +5 -5
  141. package/lib/components/markdown_editor/markdown_editor_toolbar.js +2 -0
  142. package/lib/components/modal/confirm_modal.js +1 -1
  143. package/lib/components/notification/notification_event.js +5 -3
  144. package/lib/components/notification/notification_event_read_button.js +2 -1
  145. package/lib/components/page/page_template.js +1 -1
  146. package/lib/components/page_template/inner/page_inner.styles.js +2 -2
  147. package/lib/components/page_template/outer/page_outer.styles.js +4 -1
  148. package/lib/components/panel/panel.js +1 -1
  149. package/{optimize/lib/components/panel/panel.style.js → lib/components/panel/panel.styles.js} +1 -1
  150. package/lib/components/progress/progress.styles.js +2 -2
  151. package/lib/components/title/title.styles.js +1 -1
  152. package/lib/components/toast/toast.styles.js +4 -4
  153. package/lib/components/tool_tip/icon_tip.js +11 -1
  154. package/lib/components/tool_tip/tool_tip.js +18 -6
  155. package/lib/global_styling/functions/logicals.js +3 -72
  156. package/lib/global_styling/functions/logicals.json +56 -0
  157. package/lib/global_styling/functions/typography.js +3 -1
  158. package/lib/global_styling/mixins/_color.js +1 -1
  159. package/lib/global_styling/mixins/_helpers.js +9 -2
  160. package/lib/global_styling/reset/global_styles.js +3 -1
  161. package/lib/themes/amsterdam/global_styling/mixins/button.js +178 -24
  162. package/optimize/es/components/accessibility/screen_reader_only/screen_reader_only.styles.js +2 -1
  163. package/optimize/es/components/accordion/accordion.js +2 -1
  164. package/optimize/es/components/accordion/accordion.styles.js +17 -27
  165. package/optimize/es/components/badge/beta_badge/beta_badge.js +6 -3
  166. package/optimize/es/components/beacon/beacon.styles.js +2 -2
  167. package/optimize/es/components/button/button.js +88 -100
  168. package/optimize/es/components/button/button_display/_button_display.js +67 -32
  169. package/optimize/es/components/button/button_display/_button_display.styles.js +7 -16
  170. package/optimize/es/components/button/button_display/_button_display_content.js +5 -2
  171. package/optimize/es/components/button/button_display/_button_display_content.styles.js +7 -17
  172. package/optimize/es/components/button/button_empty/button_empty.js +55 -47
  173. package/optimize/es/components/button/button_empty/index.js +1 -1
  174. package/optimize/es/components/button/button_group/button_group.js +2 -10
  175. package/optimize/es/components/button/button_group/button_group_button.js +13 -3
  176. package/optimize/es/components/button/button_icon/button_icon.js +54 -41
  177. package/optimize/es/components/call_out/call_out.styles.js +2 -1
  178. package/optimize/es/components/card/card.js +97 -31
  179. package/optimize/es/components/card/card.styles.js +136 -0
  180. package/optimize/es/components/card/{card_select.js → card_select/card_select.js} +16 -14
  181. package/optimize/es/components/card/card_select/card_select.styles.js +25 -0
  182. package/optimize/es/components/card/card_select/index.js +8 -0
  183. package/optimize/es/components/card/checkable_card/checkable_card.js +14 -9
  184. package/optimize/es/components/card/checkable_card/checkable_card.styles.js +22 -0
  185. package/optimize/es/components/comment_list/comment_event.styles.js +1 -1
  186. package/optimize/es/components/date_picker/react-datepicker/original.package.json +124 -0
  187. package/optimize/es/components/description_list/description_list_title.js +1 -1
  188. package/optimize/es/components/expression/expression.styles.js +13 -31
  189. package/optimize/es/components/facet/facet_button.js +5 -3
  190. package/optimize/es/components/icon/icon.js +2 -1
  191. package/optimize/es/components/image/image_button.styles.js +1 -1
  192. package/optimize/es/components/image/image_wrapper.styles.js +3 -3
  193. package/optimize/es/components/link/link.styles.js +2 -2
  194. package/optimize/es/components/loading/loading_chart.styles.js +16 -26
  195. package/optimize/es/components/loading/loading_content.styles.js +2 -2
  196. package/optimize/es/components/loading/loading_logo.styles.js +4 -4
  197. package/optimize/es/components/loading/loading_spinner.styles.js +6 -6
  198. package/optimize/es/components/markdown_editor/markdown_editor_toolbar.js +2 -0
  199. package/optimize/es/components/page/page_template.js +2 -2
  200. package/optimize/es/components/page_template/inner/page_inner.styles.js +2 -2
  201. package/optimize/es/components/page_template/outer/page_outer.styles.js +3 -1
  202. package/optimize/es/components/panel/panel.js +1 -1
  203. package/optimize/es/components/panel/{panel.style.js → panel.styles.js} +2 -2
  204. package/optimize/es/components/progress/progress.styles.js +2 -2
  205. package/optimize/es/components/title/title.styles.js +2 -2
  206. package/optimize/es/components/toast/toast.styles.js +4 -4
  207. package/optimize/es/components/tool_tip/tool_tip.js +7 -5
  208. package/optimize/es/global_styling/functions/logicals.js +2 -72
  209. package/optimize/es/global_styling/functions/logicals.json +56 -0
  210. package/optimize/es/global_styling/functions/typography.js +2 -1
  211. package/optimize/es/global_styling/mixins/_color.js +1 -1
  212. package/optimize/es/global_styling/mixins/_helpers.js +7 -1
  213. package/optimize/es/global_styling/reset/global_styles.js +2 -1
  214. package/optimize/es/themes/amsterdam/global_styling/mixins/button.js +155 -16
  215. package/optimize/lib/components/accessibility/screen_reader_only/screen_reader_only.styles.js +3 -1
  216. package/optimize/lib/components/accordion/accordion.js +3 -1
  217. package/optimize/lib/components/accordion/accordion.styles.js +17 -26
  218. package/optimize/lib/components/badge/beta_badge/beta_badge.js +6 -3
  219. package/optimize/lib/components/beacon/beacon.styles.js +1 -1
  220. package/optimize/lib/components/button/button.js +92 -103
  221. package/optimize/lib/components/button/button_display/_button_display.js +71 -25
  222. package/optimize/lib/components/button/button_display/_button_display.styles.js +7 -16
  223. package/optimize/lib/components/button/button_display/_button_display_content.js +6 -2
  224. package/optimize/lib/components/button/button_display/_button_display_content.styles.js +7 -17
  225. package/optimize/lib/components/button/button_empty/button_empty.js +59 -50
  226. package/optimize/lib/components/button/button_empty/index.js +0 -6
  227. package/optimize/lib/components/button/button_group/button_group.js +2 -10
  228. package/optimize/lib/components/button/button_group/button_group_button.js +15 -3
  229. package/optimize/lib/components/button/button_icon/button_icon.js +54 -41
  230. package/optimize/lib/components/call_out/call_out.styles.js +2 -1
  231. package/optimize/lib/components/card/card.js +97 -30
  232. package/optimize/lib/components/card/card.styles.js +146 -0
  233. package/optimize/lib/components/card/{card_select.js → card_select/card_select.js} +16 -14
  234. package/optimize/lib/components/card/card_select/card_select.styles.js +27 -0
  235. package/optimize/lib/components/card/card_select/index.js +19 -0
  236. package/optimize/lib/components/card/checkable_card/checkable_card.js +16 -9
  237. package/optimize/lib/components/card/checkable_card/checkable_card.styles.js +33 -0
  238. package/optimize/lib/components/comment_list/comment_event.styles.js +1 -1
  239. package/optimize/lib/components/date_picker/react-datepicker/original.package.json +124 -0
  240. package/optimize/lib/components/description_list/description_list_title.js +1 -1
  241. package/optimize/lib/components/expression/expression.styles.js +12 -30
  242. package/optimize/lib/components/facet/facet_button.js +4 -2
  243. package/optimize/lib/components/icon/icon.js +2 -1
  244. package/optimize/lib/components/image/image_button.styles.js +1 -1
  245. package/optimize/lib/components/image/image_wrapper.styles.js +2 -2
  246. package/optimize/lib/components/link/link.styles.js +1 -1
  247. package/optimize/lib/components/loading/loading_chart.styles.js +16 -25
  248. package/optimize/lib/components/loading/loading_content.styles.js +1 -1
  249. package/optimize/lib/components/loading/loading_logo.styles.js +4 -4
  250. package/optimize/lib/components/loading/loading_spinner.styles.js +5 -5
  251. package/optimize/lib/components/markdown_editor/markdown_editor_toolbar.js +2 -0
  252. package/optimize/lib/components/page/page_template.js +1 -1
  253. package/optimize/lib/components/page_template/inner/page_inner.styles.js +2 -2
  254. package/optimize/lib/components/page_template/outer/page_outer.styles.js +4 -1
  255. package/optimize/lib/components/panel/panel.js +1 -1
  256. package/{test-env/components/panel/panel.style.js → optimize/lib/components/panel/panel.styles.js} +1 -1
  257. package/optimize/lib/components/progress/progress.styles.js +2 -2
  258. package/optimize/lib/components/title/title.styles.js +1 -1
  259. package/optimize/lib/components/toast/toast.styles.js +4 -4
  260. package/optimize/lib/components/tool_tip/tool_tip.js +7 -5
  261. package/optimize/lib/global_styling/functions/logicals.js +10 -73
  262. package/optimize/lib/global_styling/functions/logicals.json +56 -0
  263. package/optimize/lib/global_styling/functions/typography.js +3 -1
  264. package/optimize/lib/global_styling/mixins/_color.js +1 -1
  265. package/optimize/lib/global_styling/mixins/_helpers.js +9 -2
  266. package/optimize/lib/global_styling/reset/global_styles.js +3 -1
  267. package/optimize/lib/themes/amsterdam/global_styling/mixins/button.js +170 -17
  268. package/package.json +2 -2
  269. package/src/components/badge/beta_badge/_beta_badge.scss +5 -1
  270. package/src/components/button/_index.scss +0 -1
  271. package/src/components/button/button_empty/_button_empty.scss +4 -48
  272. package/src/components/button/button_group/_button_group.scss +0 -1
  273. package/src/components/button/button_group/_button_group_button.scss +55 -83
  274. package/src/components/button/button_icon/_button_icon.scss +3 -103
  275. package/src/components/control_bar/_control_bar.scss +2 -6
  276. package/src/components/datagrid/_data_grid_data_row.scss +7 -0
  277. package/src/components/flyout/_flyout.scss +4 -1
  278. package/src/components/index.scss +0 -1
  279. package/src/global_styling/mixins/_button.scss +55 -11
  280. package/src/global_styling/mixins/_index.scss +0 -1
  281. package/src/themes/amsterdam/global_styling/mixins/_index.scss +0 -2
  282. package/src/themes/amsterdam/overrides/_header.scss +0 -2
  283. package/src/themes/amsterdam/overrides/_index.scss +0 -4
  284. package/test-env/components/accessibility/screen_reader_only/screen_reader_only.styles.js +3 -1
  285. package/test-env/components/accessibility/skip_link/skip_link.js +4 -54
  286. package/test-env/components/accordion/accordion.js +3 -1
  287. package/test-env/components/accordion/accordion.styles.js +17 -26
  288. package/test-env/components/badge/beta_badge/beta_badge.js +16 -3
  289. package/test-env/components/basic_table/basic_table.js +1 -1
  290. package/test-env/components/basic_table/collapsed_item_actions.js +1 -1
  291. package/test-env/components/basic_table/in_memory_table.js +1 -1
  292. package/test-env/components/beacon/beacon.styles.js +1 -1
  293. package/test-env/components/button/button.js +111 -225
  294. package/test-env/components/button/button_display/_button_display.js +93 -32
  295. package/test-env/components/button/button_display/_button_display.styles.js +7 -16
  296. package/test-env/components/button/button_display/_button_display_content.js +7 -3
  297. package/test-env/components/button/button_display/_button_display_content.styles.js +7 -17
  298. package/test-env/components/button/button_empty/button_empty.js +64 -53
  299. package/test-env/components/button/button_empty/index.js +0 -6
  300. package/test-env/components/button/button_group/button_group.js +4 -12
  301. package/test-env/components/button/button_group/button_group_button.js +16 -4
  302. package/test-env/components/button/button_icon/button_icon.js +61 -42
  303. package/test-env/components/call_out/call_out.styles.js +2 -1
  304. package/test-env/components/card/card.js +172 -88
  305. package/test-env/components/card/card.styles.js +146 -0
  306. package/test-env/components/card/card_select/card_select.js +141 -0
  307. package/test-env/components/card/card_select/card_select.styles.js +27 -0
  308. package/test-env/components/card/card_select/index.js +19 -0
  309. package/test-env/components/card/checkable_card/checkable_card.js +16 -9
  310. package/test-env/components/card/checkable_card/checkable_card.styles.js +33 -0
  311. package/test-env/components/comment_list/comment_event.styles.js +1 -1
  312. package/test-env/components/datagrid/body/data_grid_body.js +7 -6
  313. package/test-env/components/datagrid/body/data_grid_cell.js +13 -12
  314. package/test-env/components/datagrid/body/header/data_grid_header_cell.js +7 -6
  315. package/test-env/components/datagrid/body/header/data_grid_header_row.js +7 -6
  316. package/test-env/components/datagrid/data_grid.js +7 -6
  317. package/test-env/components/datagrid/utils/in_memory.js +7 -6
  318. package/test-env/components/date_picker/auto_refresh/auto_refresh.js +3 -2
  319. package/test-env/components/date_picker/react-datepicker/original.package.json +124 -0
  320. package/test-env/components/date_picker/super_date_picker/super_date_picker.js +17 -1
  321. package/test-env/components/date_picker/super_date_picker/super_update_button.js +11 -1
  322. package/test-env/components/description_list/description_list_title.js +1 -1
  323. package/test-env/components/expression/expression.styles.js +12 -30
  324. package/test-env/components/facet/facet_button.js +4 -3
  325. package/test-env/components/header/header_links/header_link.js +5 -3
  326. package/test-env/components/image/image_button.styles.js +1 -1
  327. package/test-env/components/image/image_wrapper.styles.js +2 -2
  328. package/test-env/components/link/link.styles.js +1 -1
  329. package/test-env/components/list_group/list_group.js +2 -1
  330. package/test-env/components/list_group/list_group_item.js +2 -1
  331. package/test-env/components/list_group/pinnable_list_group/pinnable_list_group.js +3 -2
  332. package/test-env/components/loading/loading_chart.styles.js +16 -25
  333. package/test-env/components/loading/loading_content.styles.js +1 -1
  334. package/test-env/components/loading/loading_logo.styles.js +4 -4
  335. package/test-env/components/loading/loading_spinner.styles.js +5 -5
  336. package/test-env/components/markdown_editor/markdown_editor_toolbar.js +2 -0
  337. package/test-env/components/modal/confirm_modal.js +1 -1
  338. package/test-env/components/notification/notification_event.js +5 -3
  339. package/test-env/components/notification/notification_event_read_button.js +2 -1
  340. package/test-env/components/page/page_template.js +1 -1
  341. package/test-env/components/page_template/inner/page_inner.styles.js +2 -2
  342. package/test-env/components/page_template/outer/page_outer.styles.js +4 -1
  343. package/test-env/components/panel/panel.js +1 -1
  344. package/{lib/components/panel/panel.style.js → test-env/components/panel/panel.styles.js} +1 -1
  345. package/test-env/components/progress/progress.styles.js +2 -2
  346. package/test-env/components/title/title.styles.js +1 -1
  347. package/test-env/components/toast/toast.styles.js +4 -4
  348. package/test-env/components/tool_tip/icon_tip.js +11 -1
  349. package/test-env/components/tool_tip/tool_tip.js +18 -6
  350. package/test-env/global_styling/functions/logicals.js +10 -73
  351. package/test-env/global_styling/functions/logicals.json +56 -0
  352. package/test-env/global_styling/functions/typography.js +3 -1
  353. package/test-env/global_styling/mixins/_color.js +1 -1
  354. package/test-env/global_styling/mixins/_helpers.js +9 -2
  355. package/test-env/global_styling/reset/global_styles.js +3 -1
  356. package/test-env/themes/amsterdam/global_styling/mixins/button.js +170 -17
  357. package/es/components/card/card_select.js +0 -176
  358. package/lib/components/card/card_select.js +0 -187
  359. package/src/components/button/_button.scss +0 -143
  360. package/src/components/button/button_icon/_variables.scss +0 -11
  361. package/src/components/card/_card.scss +0 -239
  362. package/src/components/card/_card_select.scss +0 -21
  363. package/src/components/card/_index.scss +0 -5
  364. package/src/components/card/_mixins.scss +0 -11
  365. package/src/components/card/_variables.scss +0 -25
  366. package/src/components/card/checkable_card/_checkable_card.scss +0 -29
  367. package/src/components/card/checkable_card/_index.scss +0 -1
  368. package/src/global_styling/mixins/_beta_badge.scss +0 -30
  369. package/src/themes/amsterdam/global_styling/mixins/_button.scss +0 -60
  370. package/src/themes/amsterdam/overrides/_button.scss +0 -119
  371. package/src/themes/amsterdam/overrides/_button_empty.scss +0 -20
  372. package/src/themes/amsterdam/overrides/_button_group.scss +0 -91
  373. package/src/themes/amsterdam/overrides/_card.scss +0 -6
  374. package/test-env/components/card/card_select.js +0 -184
@@ -1,143 +0,0 @@
1
- // This file has lots of modifiers and is somewhat nesty by nature
2
- // sass-lint:disable nesting-depth
3
-
4
- // Our base button
5
- .euiButton {
6
- @include euiButton;
7
- @include euiSlightShadow;
8
-
9
- border-radius: $euiBorderRadius;
10
- min-width: $euiButtonMinWidth;
11
-
12
- .euiButton__content {
13
- padding: 0 ($euiSize - $euiSizeXS);
14
- }
15
-
16
- .euiButton__text {
17
- text-overflow: ellipsis;
18
- overflow: hidden;
19
- }
20
-
21
- &.euiButton--small {
22
- height: $euiButtonHeightSmall;
23
- line-height: $euiButtonHeightSmall; // prevents descenders from getting cut off
24
- }
25
-
26
- &:hover,
27
- &:active {
28
- @include euiSlightShadowHover;
29
- }
30
-
31
- &:not([class*='isDisabled']) {
32
- &:hover,
33
- &:focus,
34
- &:focus-within {
35
- background-color: transparentize($euiColorPrimary, .9);
36
- }
37
- }
38
-
39
- &.euiButton-isDisabled {
40
- @include euiButtonContentDisabled;
41
- color: $euiButtonColorDisabledText;
42
- border-color: $euiButtonColorDisabled;
43
-
44
- &.euiButton--fill {
45
- // Only increase the contrast of background color to text to 2.0 for disabled
46
- color: makeHighContrastColor($euiButtonColorDisabled, $euiButtonColorDisabled, 2);
47
- background-color: $euiButtonColorDisabled;
48
- border-color: $euiButtonColorDisabled;
49
-
50
- &:hover,
51
- &:focus,
52
- &:focus-within {
53
- background-color: $euiButtonColorDisabled;
54
- border-color: $euiButtonColorDisabled;
55
- }
56
- }
57
-
58
- &:hover,
59
- &:focus,
60
- &:focus-within {
61
- @include euiSlightShadow;
62
- text-decoration: none;
63
- }
64
- }
65
- }
66
-
67
- // Create button modifiers based upon the map.
68
- @each $name, $color in $euiButtonTypes {
69
- .euiButton--#{$name} {
70
- @if ($name == 'ghost') {
71
- // Ghost is unique and ALWAYS sits against a dark background.
72
- color: $color;
73
- } @else if ($name == 'text') {
74
- // The default color is lighter than the normal text color, make the it the text color
75
- color: $euiTextColor;
76
- } @else {
77
- // Other colors need to check their contrast against the page background color.
78
- color: makeHighContrastColor($color, $euiPageBackgroundColor);
79
- }
80
-
81
- border-color: $color;
82
-
83
- &.euiButton--fill {
84
- background-color: $color;
85
- border-color: $color;
86
-
87
- // The function makes that hexes safe for theming
88
- $fillTextColor: chooseLightOrDarkText($color, $euiColorGhost, $euiColorInk);
89
-
90
- color: $fillTextColor;
91
-
92
- &:not([class*='isDisabled']) {
93
- &:hover,
94
- &:focus,
95
- &:focus-within {
96
- background-color: darken($color, 5%);
97
- border-color: darken($color, 5%);
98
- }
99
- }
100
- }
101
-
102
- &:not([class*='isDisabled']) {
103
- $shadowColor: $euiShadowColor;
104
- @if ($name == 'ghost') {
105
- $shadowColor: $euiColorInk;
106
- } @else if (lightness($euiTextColor) < 50) {
107
- // Only if this is the light theme do we use the button variant color to colorize the shadow
108
- $shadowColor: desaturate($color, 60%);
109
- }
110
-
111
- @include euiSlightShadow($shadowColor);
112
-
113
- &:hover,
114
- &:focus,
115
- &:focus-within {
116
- @include euiSlightShadowHover($shadowColor);
117
- background-color: transparentize($color, .9);
118
- }
119
- }
120
- }
121
- }
122
-
123
- // Fix ghost/disabled look specifically
124
- .euiButton.euiButton-isDisabled.euiButton--ghost {
125
- &,
126
- &:hover,
127
- &:focus,
128
- &:focus-within {
129
- @include euiSlightShadow($euiColorInk);
130
- color: $euiButtonColorGhostDisabled;
131
- border-color: $euiButtonColorGhostDisabled;
132
- }
133
-
134
- &.euiButton--fill {
135
- background-color: $euiButtonColorGhostDisabled;
136
- color: makeHighContrastColor($euiButtonColorGhostDisabled, $euiButtonColorGhostDisabled, 2);
137
- }
138
- }
139
-
140
- .euiButton--fullWidth {
141
- display: block;
142
- width: 100%;
143
- }
@@ -1,11 +0,0 @@
1
- // Modifier naming and colors.
2
- $euiButtonIconTypes: (
3
- accent: $euiColorAccentText,
4
- danger: $euiColorDangerText,
5
- ghost: $euiColorGhost,
6
- primary: $euiColorPrimaryText,
7
- subdued: $euiTextSubduedColor,
8
- success: $euiColorSuccessText,
9
- text: $euiColorDarkShade,
10
- warning: $euiColorWarningText,
11
- );
@@ -1,239 +0,0 @@
1
- /**
2
- * 1. Footer is always at the bottom.
3
- * 2. Fix for IE where the image correctly resizes in width but doesn't collapse its height
4
- (https://github.com/philipwalton/flexbugs/issues/75#issuecomment-134702421)
5
- * 3. Horizontal layouts should always top left align no matter the textAlign prop
6
- */
7
-
8
- // EuiCard inherits most from EuiPanel, these styles are for content or other states
9
-
10
- .euiCard {
11
- display: flex;
12
- flex-direction: column;
13
- min-height: 1px; /* 2 */
14
-
15
- &.euiCard-isDisabled {
16
- // sass-lint:disable-block no-important
17
- cursor: not-allowed !important; // duplicate property due to Chrome bug
18
- transform: none !important;
19
- box-shadow: none !important;
20
- text-decoration: none !important;
21
- background-color: transparentize($euiButtonColorDisabled, .9) !important;
22
- color: $euiColorDisabledText;
23
-
24
- .euiCard__top {
25
- filter: grayscale(100%);
26
- }
27
-
28
- .euiCard__titleAnchor,
29
- .euiCard__titleButton {
30
- color: $euiColorDisabledText;
31
- cursor: inherit;
32
- }
33
-
34
- .euiCard__betaBadge:not(.euiBetaBadge-isClickable):not(.euiBetaBadge--hollow) {
35
- box-shadow: inset 0 0 0 1px $euiBorderColor;
36
- background: transparent;
37
- color: inherit;
38
- }
39
-
40
- .euiCard__betaBadge:not(.euiBetaBadge-isClickable).euiBetaBadge--hollow {
41
- background-color: $euiColorEmptyShade;
42
- }
43
- }
44
-
45
- &.euiCard--isClickable {
46
- display: flex; // Override panel
47
- width: 100%;
48
-
49
- &:not(.euiCard-isDisabled) {
50
- // Progressive Enhancement Only
51
- // The title will still underline to simulate focus in IE
52
- &:focus-within {
53
- @include euiSlightShadowHover;
54
- @include euiFocusRing('large');
55
- }
56
-
57
- &:focus,
58
- &:hover {
59
- .euiCard__title,
60
- .euiCard__titleAnchor,
61
- .euiCard__titleButton {
62
- text-decoration: underline;
63
- }
64
- }
65
- }
66
- }
67
-
68
- .euiCard__top,
69
- .euiCard__content,
70
- .euiCard__footer {
71
- width: 100%; // Fixes IE and ensures they always stretch no matter the flex layout
72
- }
73
-
74
- &.euiCard--leftAligned {
75
- text-align: left;
76
- align-items: flex-start;
77
-
78
- .euiCard__titleButton {
79
- text-align: left;
80
- }
81
- }
82
-
83
- &.euiCard--centerAligned {
84
- text-align: center;
85
- align-items: center;
86
- }
87
-
88
- &.euiCard--rightAligned {
89
- text-align: right;
90
- align-items: flex-end;
91
-
92
- .euiCard__titleButton {
93
- text-align: right;
94
- }
95
- }
96
-
97
- &.euiCard-isSelected {
98
- transition: all $euiAnimSpeedFast $euiAnimSlightResistance;
99
- }
100
- }
101
-
102
- // This creates a bunch of sub selectors for the beta badge
103
- @include euiHasBetaBadge($selector: '.euiCard', $spacing: $euiCardSpacing);
104
-
105
- .euiCard__betaBadge.euiBetaBadge--hollow {
106
- background-color: $euiColorEmptyShade;
107
- }
108
-
109
- .euiCard--isSelectable {
110
- position: relative;
111
- }
112
-
113
-
114
- @each $modifier, $paddingAmount in $euiPanelPaddingModifiers {
115
- .euiCard[class*='#{$modifier}'] {
116
- padding: $paddingAmount;
117
-
118
- &.euiCard--isSelectable {
119
- padding-bottom: $paddingAmount + $euiCardBottomNodeHeight;
120
- }
121
-
122
- .euiCard__top {
123
-
124
- .euiCard__image {
125
- width: calc(100% + (#{$paddingAmount} * 2));
126
- left: $paddingAmount * -1;
127
- top: $paddingAmount * -1;
128
- margin-bottom: $paddingAmount * -1; // ensure the parent is only as tall as the image
129
-
130
- // IF both exist, position the icon centered on top of image
131
- + .euiCard__icon {
132
- transform: translate(-50%, -75%); // Fallback for IE as it doesn't accept calcs in translates
133
- transform: translate(-50%, calc(-50% + #{$paddingAmount * -1})); // sass-lint:disable-line no-duplicate-properties
134
- }
135
- }
136
- }
137
-
138
- }
139
- }
140
-
141
- .euiCard__top {
142
- flex-grow: 0; /* 1 */
143
- position: relative;
144
- min-height: 1px; /* 2 */
145
- font-size: 0;
146
-
147
- .euiCard__image {
148
- position: relative;
149
-
150
- // match border radius, minus 1px because it's inside a border
151
- border-top-left-radius: $euiBorderRadius - 1px;
152
- border-top-right-radius: $euiBorderRadius - 1px;
153
- overflow: hidden;
154
-
155
- img {
156
- width: 100%;
157
- }
158
-
159
- // IF both exist, position the icon centered on top of image
160
- + .euiCard__icon {
161
- position: absolute;
162
- top: 50%;
163
- left: 50%;
164
- }
165
- }
166
-
167
- .euiCard__icon {
168
- margin-top: $euiCardSpacing / 2;
169
- }
170
- }
171
-
172
- .euiCard__footer:not(:empty) {
173
- flex-grow: 0; /* 1 */
174
- margin-top: $euiCardSpacing;
175
- }
176
-
177
- // Without a border, the image should stand on it's own so it needs to have all corners rounded
178
- .euiCard[class*='transparent'] .euiCard__image {
179
- border-radius: $euiBorderRadius;
180
- }
181
-
182
- @each $name, $color in $euiCardSelectButtonBorders {
183
- .euiCard--isSelectable--#{$name}.euiCard-isSelected:not(.euiCard-isDisabled) {
184
- // Override .euiPanel.has--Border
185
- border-color: $color !important; // sass-lint:disable-line no-important
186
- }
187
- }
188
-
189
- // If an icon or image exists, add some space
190
- .euiCard__top + .euiCard__content {
191
- margin-top: $euiCardSpacing;
192
- }
193
-
194
- .euiCard__content {
195
- flex-grow: 1; /* 1 */
196
-
197
- .euiCard__description,
198
- .euiCard__children {
199
- margin-top: $euiCardSpacing / 2;
200
- }
201
-
202
- .euiCard__titleAnchor,
203
- .euiCard__titleButton {
204
- font: inherit;
205
- color: inherit;
206
- letter-spacing: inherit;
207
-
208
- &:focus {
209
- text-decoration: underline;
210
- }
211
- }
212
-
213
- }
214
-
215
- .euiCard.euiCard--horizontal {
216
- .euiCard__content,
217
- .euiCard__titleButton {
218
- text-align: left; /* 3 */
219
- }
220
-
221
- // Only change the flex direction if the card has an icon
222
- // otherwise the button tag won't properly align contents to top
223
- &.euiCard--hasIcon {
224
- flex-direction: row;
225
- // sass-lint:disable-block no-important
226
- align-items: flex-start !important; /* 3 */
227
-
228
- .euiCard__top,
229
- .euiCard__content {
230
- width: auto; // Makes sure the top shrinks and the content grows
231
- margin-top: 0;
232
- }
233
-
234
- .euiCard__top .euiCard__icon {
235
- margin-top: 0;
236
- margin-right: $euiSize;
237
- }
238
- }
239
- }
@@ -1,21 +0,0 @@
1
- .euiCardSelect {
2
- // Option select button that expands to sides and bottom
3
- @include euiCardBottomNodePosition;
4
- font-weight: $euiFontWeightBold;
5
-
6
- // Create button modifiers based upon the map.
7
- @each $name, $color in $euiCardSelectButtonBackgrounds {
8
- &--#{$name}:enabled {
9
- // Override EuiButtonEmpty's focus background
10
- background-color: $color !important; // sass-lint:disable-line no-important
11
- // Custom success text color since it doesn't exist on EuiButtonEmpty
12
- @if ($name == 'success') {
13
- color: makeHighContrastColor($euiColorSuccess, $color);
14
- }
15
- }
16
- }
17
-
18
- &:disabled {
19
- background-color: $euiPageBackgroundColor;
20
- }
21
- }
@@ -1,5 +0,0 @@
1
- @import 'variables';
2
- @import 'mixins';
3
- @import 'card';
4
- @import 'card_select';
5
- @import 'checkable_card/index';
@@ -1,11 +0,0 @@
1
- @mixin euiCardBottomNodePosition {
2
- position: absolute;
3
- bottom: 0;
4
- left: 0;
5
- height: $euiCardBottomNodeHeight !important; // sass-lint:disable-line no-important -- To override .euiButtonEmpty--xSmall
6
- width: 100%;
7
- overflow: hidden;
8
- // Subtract 1px from border radius since it sits inside a border-radius
9
- border-bottom-left-radius: $euiBorderRadius - 1px;
10
- border-bottom-right-radius: $euiBorderRadius - 1px;
11
- }
@@ -1,25 +0,0 @@
1
- $euiCardSpacing: map-get($euiPanelPaddingModifiers, 'paddingMedium');
2
- $euiCardBottomNodeHeight: $euiSizeXXL;
3
-
4
- $euiCardSelectButtonBorders: (
5
- text: $euiColorSuccess, // Default for selected
6
- primary: $euiColorPrimary,
7
- success: $euiColorSuccess,
8
- danger: $euiColorDanger,
9
- ghost: $euiColorDarkShade,
10
- );
11
-
12
- $euiCardSelectButtonBackgrounds: (
13
- text: $euiColorLightestShade, // Default for unselected
14
- primary: tintOrShade($euiColorPrimary, 90%, 70%),
15
- success: tintOrShade($euiColorSuccess, 90%, 70%),
16
- danger: tintOrShade($euiColorDanger, 90%, 70%),
17
- ghost: $euiColorDarkShade,
18
- );
19
-
20
- $euiCardPaddingModifiers: (
21
- 'paddingNone': 0,
22
- 'paddingSmall': $euiSizeS,
23
- 'paddingMedium': $euiSize,
24
- 'paddingLarge': $euiSizeL
25
- ) !default;
@@ -1,29 +0,0 @@
1
- $euiCheckableCardPadding: map-get($euiPanelPaddingModifiers, 'paddingMedium');
2
-
3
- .euiCheckableCard {
4
- transition: border-color $euiAnimSpeedNormal ease-in;
5
-
6
- &:not(.euiCheckableCard-isDisabled) {
7
- &.euiCheckableCard-isChecked {
8
- border-color: $euiColorPrimary;
9
- }
10
- }
11
- }
12
-
13
- .euiCheckableCard__label {
14
- cursor: pointer;
15
- // Expand the label to cover the whole panel for easier click target
16
- display: block;
17
- width: calc(100% + #{$euiCheckableCardPadding * 2});
18
- padding: $euiCheckableCardPadding;
19
- margin: -$euiCheckableCardPadding;
20
- }
21
-
22
- .euiCheckableCard__label-isDisabled {
23
- color: $euiFormControlDisabledColor;
24
- cursor: not-allowed;
25
- }
26
-
27
- .euiCheckableCard__children {
28
- margin-top: $euiSize;
29
- }
@@ -1 +0,0 @@
1
- @import 'checkable_card';
@@ -1,30 +0,0 @@
1
-
2
- // 1. Extend beta badges to at least 30% of the container's width
3
- // 2. Fix for IE to ensure badges are visible outside of a <button> tag
4
-
5
- @mixin euiHasBetaBadge($selector, $spacing: $euiSize) {
6
- #{$selector}--hasBetaBadge {
7
- position: relative;
8
- overflow: visible; // 2
9
-
10
- #{$selector}__betaBadgeWrapper {
11
- position: absolute;
12
- top: ($euiSizeL / -2);
13
- left: 50%;
14
- transform: translateX(-50%);
15
- z-index: 3; // get above abs positioned image
16
- min-width: 30%; // 1
17
- max-width: calc(100% - #{($spacing * 2)});
18
-
19
- .euiToolTipAnchor,
20
- #{$selector}__betaBadge {
21
- width: 100%; // 1
22
- }
23
-
24
- #{$selector}__betaBadge {
25
- overflow: hidden;
26
- text-overflow: ellipsis;
27
- }
28
- }
29
- }
30
- }
@@ -1,60 +0,0 @@
1
- @mixin euiButton {
2
- @include euiButtonBase;
3
- @include euiFont;
4
- @include euiFontSize;
5
- @include euiButtonFocus;
6
-
7
- font-weight: $euiButtonFontWeight;
8
- text-decoration: none;
9
- transition: background-color $euiAnimSpeedNormal ease-in-out, border-color $euiAnimSpeedNormal ease-in-out;
10
- outline-offset: -1px;
11
-
12
- &:hover:not([class*='isDisabled']),
13
- &:focus {
14
- text-decoration: underline;
15
- }
16
- }
17
-
18
- /*
19
- * Creates the Amsterdam style of button with a transparent background
20
- */
21
- @mixin euiButtonDefaultStyle($color: 'primary', $includeStates: true, $transparency: $euiButtonDefaultTransparency) {
22
- $backgroundColor: $color;
23
-
24
- @if (map-has-key($euiButtonTypes, $color)) {
25
- $backgroundColor: map-get($euiButtonTypes, $color);
26
- }
27
-
28
- $percentConversion: $transparency * 100%;
29
- // This variable simulates the possibly darkest background the button could be on
30
- // Simulates the 20% opaque color on top of the page background color
31
- $backgroundColorSimulated: mix($euiPageBackgroundColor, $backgroundColor, $percentConversion);
32
- // Then we can calculate the darkest text color needed
33
- color: makeHighContrastColor($backgroundColor, $backgroundColorSimulated);
34
- // But still use transparency
35
- background-color: transparentize($backgroundColor, $transparency);
36
-
37
- @if ($includeStates) {
38
- &:not([class*='isDisabled']) {
39
- &:hover,
40
- &:focus {
41
- // Duplicated from inert state simply to override default theme
42
- background-color: transparentize($backgroundColor, $transparency);
43
- }
44
- }
45
- }
46
- }
47
-
48
- /*
49
- * Creates the Amsterdam style of fill button
50
- */
51
- @mixin euiButtonFillStyle($color: 'primary') {
52
- $backgroundColor: $color;
53
-
54
- @if (map-has-key($euiButtonTypes, $color)) {
55
- $backgroundColor: map-get($euiButtonTypes, $color);
56
- }
57
-
58
- background-color: $backgroundColor;
59
- color: chooseLightOrDarkText($backgroundColor);
60
- }
@@ -1,119 +0,0 @@
1
- // This file has lots of modifiers and is somewhat nesty by nature
2
- //sass-lint:disable nesting-depth
3
-
4
- .euiButton,
5
- .euiButtonIcon {
6
- // sass-lint:disable no-important
7
- // remove for all states
8
- box-shadow: none !important;
9
- }
10
-
11
- .euiButton.euiButton-isDisabled:not(.euiButton--ghost),
12
- .euiButtonIcon.euiButtonIcon-isDisabled:not(.euiButtonIcon--ghost) {
13
- &,
14
- &:hover {
15
- $backgroundColorSimulated: mix($euiPageBackgroundColor, $euiButtonColorDisabled, 90%);
16
- background-color: transparentize($euiButtonColorDisabled, .9);
17
- color: makeDisabledContrastColor($euiButtonColorDisabled, $backgroundColorSimulated);
18
- }
19
- }
20
-
21
- .euiButtonIcon--empty.euiButtonIcon-isDisabled:not(.euiButtonIcon--ghost) {
22
- &,
23
- &:hover {
24
- background-color: transparent;
25
- color: makeDisabledContrastColor($euiButtonColorDisabled, $euiPageBackgroundColor);
26
- }
27
- }
28
-
29
- .euiButton--small,
30
- .euiButtonIcon--small,
31
- .euiButtonIcon--xSmall {
32
- // Use a moderately smaller radius on small buttons
33
- // so that they don't appear completely rounded
34
- border-radius: $euiBorderRadius * (2 / 3);
35
- }
36
-
37
- // Change the hollow (bordered) buttons to have a transparent background
38
- // and no border
39
- @each $name, $color in $euiButtonTypes {
40
- .euiButton--#{$name} {
41
- @include euiButtonDefaultStyle($color);
42
-
43
- @if ($name == 'ghost') {
44
- // Ghost is unique and ALWAYS sits against a dark background.
45
- $backgroundColorSimulated: mix($euiColorInk, $color, 70%);
46
- color: makeHighContrastColor($color, $backgroundColorSimulated);
47
- } @else if ($name == 'text') {
48
- // The default color is lighter than the normal text color, make it the text color
49
- color: $euiTextColor;
50
- } @else {
51
- &.euiButton--fill:focus {
52
- outline-color: lightOrDarkTheme($euiColorInk, $euiColorGhost);
53
- }
54
- }
55
-
56
- &.euiButton--fill:not([class*='isDisabled']) {
57
- color: chooseLightOrDarkText($color, $euiColorGhost, $euiColorInk);
58
-
59
- &,
60
- &:hover,
61
- &:focus {
62
- background-color: $color;
63
- }
64
- }
65
- }
66
- }
67
-
68
- // Fix ghost/disabled look specifically
69
- .euiButton.euiButton-isDisabled.euiButton--ghost,
70
- // adding fill type to override default theme
71
- .euiButton.euiButton-isDisabled.euiButton--ghost.euiButton--fill {
72
- &,
73
- &:focus {
74
- color: $euiButtonColorGhostDisabled;
75
- background-color: transparentize($euiButtonColorGhostDisabled, .9);
76
- }
77
- }
78
-
79
-
80
- // Duplicating the above for EuiButtonIcon
81
- @each $name, $color in $euiButtonTypes {
82
- .euiButtonIcon--#{$name}:not(.euiButtonIcon--empty) {
83
- @include euiButtonDefaultStyle($color);
84
-
85
- @if ($name == 'ghost') {
86
- // Ghost is unique and ALWAYS sits against a dark background.
87
- $backgroundColorSimulated: mix($euiColorInk, $color, 70%);
88
- color: makeHighContrastColor($color, $backgroundColorSimulated);
89
- } @else if ($name == 'text') {
90
- // The default color is lighter than the normal text color, make it the text color
91
- color: $euiTextColor;
92
- } @else {
93
- &.euiButtonIcon--fill:focus {
94
- outline-color: lightOrDarkTheme($euiColorInk, $euiColorGhost);
95
- }
96
- }
97
-
98
- &.euiButtonIcon--fill:not([class*='isDisabled']) {
99
- color: chooseLightOrDarkText($color, $euiColorGhost, $euiColorInk);
100
-
101
- &,
102
- &:hover,
103
- &:focus {
104
- background-color: $color;
105
- }
106
- }
107
- }
108
- }
109
-
110
- // Fix ghost/disabled look specifically
111
- .euiButtonIcon:not(.euiButtonIcon--empty).euiButtonIcon-isDisabled.euiButtonIcon--ghost,
112
- // adding fill type to override default theme
113
- .euiButtonIcon.euiButtonIcon-isDisabled.euiButtonIcon--ghost.euiButtonIcon--fill {
114
- &,
115
- &:focus {
116
- color: $euiButtonColorGhostDisabled;
117
- background-color: transparentize($euiButtonColorGhostDisabled, .9);
118
- }
119
- }