blob: 7a23a8d45e64ccc67a5796a373388ff00b6c1c3b [file] [log] [blame]
<link rel="import" href="chrome://resources/cr_elements/icons.html">
<link rel="import" href="chrome://resources/html/polymer.html">
<link rel="import" href="chrome://resources/polymer/v1_0/iron-icon/iron-icon.html">
<link rel="import" href="chrome://resources/polymer/v1_0/paper-tooltip/paper-tooltip.html">
<link rel="import" href="cr_policy_indicator_behavior.html">
<link rel="import" href="cr_policy_pref_behavior.html">
<dom-module id="cr-policy-pref-indicator">
<link rel="import" type="css" href="cr_policy_indicator.css">
<style>
paper-tooltip {
--paper-tooltip: {
font-size: 92.31%; /* Effectively 12px if the host default is 13px. */
font-weight: 500;
padding: 10px 8px;
};
}
</style>
<template>
<iron-icon id="indicator" tabindex=0
hidden$="[[!isIndicatorVisible(indicatorType)]]"
icon="[[getPolicyIndicatorIcon(indicatorType)]]"></iron-icon>
<paper-tooltip for="indicator" position="top">
[[getTooltip_(indicatorType, pref, controllingUser)]]
</paper-tooltip>
</template>
<script src="cr_policy_pref_indicator.js"></script>
</dom-module>